src/cli/command.rs: use insert_help()

This commit is contained in:
Dietmar Maurer 2019-12-02 08:52:08 +01:00
parent e3e72546dd
commit f9a51322cb
1 changed files with 1 additions and 1 deletions

View File

@ -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();