parent
ace6181c99
commit
6cd9c8a01a
|
@ -33,6 +33,7 @@ pub fn run<'a>(args: &ArgMatches<'a>, conn: &Connection) {
|
||||||
let conn = conn;
|
let conn = conn;
|
||||||
match args.subcommand() {
|
match args.subcommand() {
|
||||||
("new", Some(x)) => new(x, conn),
|
("new", Some(x)) => new(x, conn),
|
||||||
|
("", None) => command().print_help().unwrap(),
|
||||||
_ => println!("Unknown subcommand"),
|
_ => println!("Unknown subcommand"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,6 +59,7 @@ pub fn run<'a>(args: &ArgMatches<'a>, conn: &Connection) {
|
||||||
("init", Some(x)) => init(x, conn),
|
("init", Some(x)) => init(x, conn),
|
||||||
("refill", Some(x)) => refill(x, conn, None),
|
("refill", Some(x)) => refill(x, conn, None),
|
||||||
("unlock", Some(x)) => unlock(x),
|
("unlock", Some(x)) => unlock(x),
|
||||||
|
("", None) => command().print_help().unwrap(),
|
||||||
_ => println!("Unknown subcommand"),
|
_ => println!("Unknown subcommand"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,6 +80,7 @@ pub fn run<'a>(args: &ArgMatches<'a>, conn: &Connection) {
|
||||||
match args.subcommand() {
|
match args.subcommand() {
|
||||||
("new", Some(x)) => new(x, conn),
|
("new", Some(x)) => new(x, conn),
|
||||||
("reset-password", Some(x)) => reset_password(x, conn),
|
("reset-password", Some(x)) => reset_password(x, conn),
|
||||||
|
("", None) => command().print_help().unwrap(),
|
||||||
_ => println!("Unknown subcommand"),
|
_ => println!("Unknown subcommand"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue