From 7faaaff2ab17a2571117e4ba93aa2139b2ddb376 Mon Sep 17 00:00:00 2001 From: a14m Date: Wed, 31 Mar 2021 23:52:46 +0200 Subject: Add the CLI options basic args Add the ordering for the help menu Define the CLI options of clap --- CLI/rust/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CLI/rust/src/main.rs') diff --git a/CLI/rust/src/main.rs b/CLI/rust/src/main.rs index e7a11a9..71f81e5 100644 --- a/CLI/rust/src/main.rs +++ b/CLI/rust/src/main.rs @@ -1,3 +1,6 @@ +mod game_of_life; + fn main() { - println!("Hello, world!"); + let matches = game_of_life::options().unwrap_or_else(|e| e.exit()); + println!("{:?}", matches); } -- cgit v1.2.3