summaryrefslogtreecommitdiffstats
path: root/CLI/rust/src/main.rs
diff options
context:
space:
mode:
authora14m <[email protected]>2021-03-31 23:52:46 +0200
committera14m <[email protected]>2021-04-01 00:39:42 +0200
commit7faaaff2ab17a2571117e4ba93aa2139b2ddb376 (patch)
tree72b9b73290a1137507a0612d8b23df8716276c82 /CLI/rust/src/main.rs
parent465c4e2301ec9dc58a1b204791a37bcf7a1cd9bd (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.rs5
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);
}