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