Print help when subcommand is given without arguments (#498)

Fix #490
This commit is contained in:
fdb-hiroshima
2019-03-21 23:25:22 +01:00
committed by GitHub
parent ace6181c99
commit 6cd9c8a01a
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -80,6 +80,7 @@ pub fn run<'a>(args: &ArgMatches<'a>, conn: &Connection) {
match args.subcommand() {
("new", Some(x)) => new(x, conn),
("reset-password", Some(x)) => reset_password(x, conn),
("", None) => command().print_help().unwrap(),
_ => println!("Unknown subcommand"),
}
}