Print usage on no subcommand

parent cde8d614
......@@ -208,7 +208,10 @@ fn main() {
("upgrade", _) => {
print_result!(upgrade(repo), "succeeded");
}
_ => unreachable!()
_ => {
eprintln!("{}", matches.usage());
success = false;
}
}
process::exit(if success { 0 } else { 1 });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment