Shift another panic into an exit
This commit is contained in:
parent
66a5714c63
commit
a3df483974
1 changed files with 1 additions and 2 deletions
|
@ -18,8 +18,7 @@ pub fn parse_config(args: Vec<String>) -> Config {
|
||||||
if args.len() == 1 || args[1] == "-h" || args[1] == "--help" {
|
if args.len() == 1 || args[1] == "-h" || args[1] == "--help" {
|
||||||
let message = format!("Usage: {} <doc-dir> <template>", argv0);
|
let message = format!("Usage: {} <doc-dir> <template>", argv0);
|
||||||
println!("{}", opts.usage(&message));
|
println!("{}", opts.usage(&message));
|
||||||
println!();
|
std::process::exit(1);
|
||||||
panic!()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let matches = opts.parse(args_).unwrap();
|
let matches = opts.parse(args_).unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue