1
Fork 0

Shift another panic into an exit

This commit is contained in:
Rune Tynan 2021-01-16 01:27:26 -05:00
parent 66a5714c63
commit a3df483974
No known key found for this signature in database
GPG key ID: 7ECC932F8B2C731E

View file

@ -18,8 +18,7 @@ pub fn parse_config(args: Vec<String>) -> Config {
if args.len() == 1 || args[1] == "-h" || args[1] == "--help" {
let message = format!("Usage: {} <doc-dir> <template>", argv0);
println!("{}", opts.usage(&message));
println!();
panic!()
std::process::exit(1);
}
let matches = opts.parse(args_).unwrap();