Home | History | Annotate | Download | only in cli

Lines Matching defs:command

91 /// \param command The subcommand to execute.
92 /// \param args The part of the command line passed to the subcommand. The
93 /// first item of this collection must match the command name.
96 /// \return The exit code of the command. Typically 0 on success, some other
100 /// This error does not encode the command name within it, so this function
107 run_subcommand(cmdline::ui* ui, cli::cli_command* command,
112 PRE(command->name() == args[0]);
113 return command->main(ui, args, user_config);
116 command->name(), e);
133 /// \param argc The number of arguments passed on the command line.
134 /// \param argv NULL-terminated array containing the command line arguments.
135 /// \param mock_command An extra command provided for testing purposes; should
191 throw cmdline::usage_error("No command provided");
197 cli::cli_command* command = commands.find(cmdname);
198 if (command == NULL)
199 throw cmdline::usage_error(F("Unknown command '%s'") % cmdname);
200 return run_subcommand(ui, command, cmdline.arguments(), user_config);
237 /// \param argc The number of arguments passed on the command line.
238 /// \param argv NULL-terminated array containing the command line arguments.
239 /// \param mock_command An extra command provided for testing purposes; should
272 const std::string message = F("Usage error for command %s: %s.") %
320 LI(F("Command line:%s") % plain_args);