diff options
Diffstat (limited to 'cli/src/main.rs')
| -rw-r--r-- | cli/src/main.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/cli/src/main.rs b/cli/src/main.rs index 57991f0..a550092 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -47,7 +47,16 @@ fn main() { ); } - if let Some(_matches) = matches.subcommand_matches("eval") { - println!("{}", eval::eval()); + if let Some(matches) = matches.subcommand_matches("eval") { + println!( + "{}", + eval::eval( + matches + .value_of("depth") + .unwrap() + .parse::<usize>() + .expect("Error: not a valid number") + ) + ); } } |
