summaryrefslogtreecommitdiffstats
path: root/CLI/rust/src
diff options
context:
space:
mode:
authora14m <[email protected]>2021-04-03 00:40:30 +0200
committera14m <[email protected]>2021-04-03 00:40:30 +0200
commitc6271541765b06c8437491e012de19da08b0ab3e (patch)
treee77ec6947500493425ec5618ca8d7bb465e9e00d /CLI/rust/src
parent4c8b603efc65b33852e3a0aee69637b304e5ff4a (diff)
Update main to show parsed options and handle errors
Diffstat (limited to 'CLI/rust/src')
-rw-r--r--CLI/rust/src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/CLI/rust/src/main.rs b/CLI/rust/src/main.rs
index 71f81e5..a831dd8 100644
--- a/CLI/rust/src/main.rs
+++ b/CLI/rust/src/main.rs
@@ -1,6 +1,7 @@
mod game_of_life;
fn main() {
- let matches = game_of_life::options().unwrap_or_else(|e| e.exit());
- println!("{:?}", matches);
+ let opts = game_of_life::opts::Opts::from(game_of_life::app().get_matches())
+ .unwrap_or_else(|e| e.exit());
+ println!("{:?}", opts);
}