help text is now used when the '-h' or '--help' flags are detected
This commit is contained in:
parent
309f4326aa
commit
044736b535
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,11 @@ mod util;
|
|||
fn main() {
|
||||
let mut args = Arguments::from_env();
|
||||
|
||||
if args.contains(["-h", "--help"]) {
|
||||
command::help(&mut args);
|
||||
return;
|
||||
}
|
||||
|
||||
let subcommand = args.subcommand().unwrap();
|
||||
|
||||
match subcommand.as_deref() {
|
||||
|
|
Loading…
Reference in a new issue