diff options
| author | a14m <[email protected]> | 2021-03-31 23:52:46 +0200 |
|---|---|---|
| committer | a14m <[email protected]> | 2021-04-01 00:39:42 +0200 |
| commit | 7faaaff2ab17a2571117e4ba93aa2139b2ddb376 (patch) | |
| tree | 72b9b73290a1137507a0612d8b23df8716276c82 /CLI/rust/src/main.rs | |
| parent | 465c4e2301ec9dc58a1b204791a37bcf7a1cd9bd (diff) | |
Add the CLI options basic args
Add the ordering for the help menu
Define the CLI options of clap
Diffstat (limited to 'CLI/rust/src/main.rs')
| -rw-r--r-- | CLI/rust/src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |
