Lines Matching defs:cmdName
149 bool SubCommand::RegisterSubCommand(std::string cmdName, std::unique_ptr<SubCommand> subCommand)
151 HLOGV("%s", cmdName.c_str());
152 if (cmdName.empty()) {
156 if (cmdName.front() == '-') {
157 HLOGE("unable use '-' at the begin of subcommand '%s'", cmdName.c_str());
161 if (g_SubCommandsMap.count(cmdName) == 0) {
163 g_SubCommandsMap.insert(std::make_pair(cmdName, std::move(subCommand)));
166 HLOGE("subcommand '%s' already registered!", cmdName.c_str());
182 SubCommand *SubCommand::FindSubCommand(std::string &cmdName)
184 HLOGV("%s", cmdName.c_str());
186 auto found = g_SubCommandsMap.find(cmdName);