diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index f484ade..0fcc3d6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,7 @@ use std::io::BufWriter; use std::process::ExitCode; mod definitions; +mod animalia; fn do_write<W, E: Error>(path: &str, write_func: W) -> Result<(), Box<dyn Error>> where @@ -43,7 +44,8 @@ fn try_main() -> Result<(), Box<dyn Error>> { command_args.push(arg.to_owned()); } match &command.to_string_lossy()[..] { - "definitions" => definitions::definitions(command_args), + "definitions" => definitions::main(command_args), + "animalia" => animalia::main(command_args), x => Err(format!("Unrecognized command: {x}").into()), } } |