We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 374168b commit 01b5dbbCopy full SHA for 01b5dbb
src/run.rs
@@ -85,11 +85,19 @@ pub fn run<'a>(command_line: Option<Vec<&str>>, console: &mut dyn ConsoleEmulato
85
.arg(Arg::with_name("disk_p").long("disk-p").value_name("path").help("directory to map disk P:"));
86
87
let matches = match command_line {
88
- None => app.get_matches(),
+ None => app.get_matches_safe(),
89
Some(args) => {
90
let mut args_complete = vec!("testbin");
91
args_complete.extend(args.iter());
92
- app.get_matches_from(args_complete)
+ app.get_matches_from_safe(args_complete)
93
+ }
94
+ };
95
+
96
+ let matches = match matches {
97
+ Ok(m) => m,
98
+ Err(e) => {
99
+ eprint!("{}", e);
100
+ return;
101
}
102
};
103
0 commit comments