diff options
| author | a14m <[email protected]> | 2021-04-03 00:40:30 +0200 |
|---|---|---|
| committer | a14m <[email protected]> | 2021-04-03 00:40:30 +0200 |
| commit | c6271541765b06c8437491e012de19da08b0ab3e (patch) | |
| tree | e77ec6947500493425ec5618ca8d7bb465e9e00d /CLI/rust/src/main.rs | |
| parent | 4c8b603efc65b33852e3a0aee69637b304e5ff4a (diff) | |
Update main to show parsed options and handle errors
Diffstat (limited to 'CLI/rust/src/main.rs')
| -rw-r--r-- | CLI/rust/src/main.rs | 5 |
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); } |
