src/cli/command.rs: use insert_help()
This commit is contained in:
parent
e3e72546dd
commit
f9a51322cb
|
@ -224,7 +224,7 @@ pub fn run_cli_command(def: CommandLineInterface) {
|
||||||
let def = match def {
|
let def = match def {
|
||||||
CommandLineInterface::Simple(cli_cmd) => CommandLineInterface::Simple(cli_cmd),
|
CommandLineInterface::Simple(cli_cmd) => CommandLineInterface::Simple(cli_cmd),
|
||||||
CommandLineInterface::Nested(map) =>
|
CommandLineInterface::Nested(map) =>
|
||||||
CommandLineInterface::Nested(map.insert("help", help_command_def().into())),
|
CommandLineInterface::Nested(map.insert_help().into()),
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut args = std::env::args();
|
let mut args = std::env::args();
|
||||||
|
|
Loading…
Reference in New Issue