mindustry logic execution, map- and schematic- parsing and rendering
Make invalid command error print not panic
| -rw-r--r-- | src/exe/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exe/mod.rs b/src/exe/mod.rs index 23ed745..e97d77b 100644 --- a/src/exe/mod.rs +++ b/src/exe/mod.rs @@ -33,9 +33,9 @@ pub fn main(mut args: Args) { match args.next() { - None => panic!("not enough arguments"), + None => eprintln!("Not enough arguments, valid commands are: edit, print"), Some(s) if s == "edit" => edit::main(args, 1), Some(s) if s == "print" => print::main(args, 1), - Some(s) => panic!("unknown argument {s}"), + Some(s) => eprintln!("Unknown argument {s}, valid commands are: edit, print"), } } |