Lines Matching refs:arguments
25 bool Command::DispatchCommands(std::vector<std::string> arguments)
27 for (std::string arg : arguments) {
31 HLOGD("args:%s", VectorToString(arguments).c_str());
32 while (!arguments.empty()) {
34 auto commandOption = Option::FindMainOption(arguments.front());
39 arguments.erase(arguments.begin());
41 if (!commandOption->callBackFunction(arguments)) {
42 printf("unknown options: %s\nUse the help command to view help.\n", arguments.front().c_str());
49 auto subCommand = SubCommand::FindSubCommand(arguments.front());
54 arguments.erase(arguments.begin());
58 if (subCommand->OnSubCommandOptions(arguments)) {
65 if (!subCommand->OnSubCommand(arguments)) {
78 printf("unknown args: %s\n", arguments.front().c_str());