Searched refs:commandName (Results 1 – 5 of 5) sorted by relevance
76 public static void addCommand(final String commandName, final Class<? extends Command> cls) { in addCommand() argument77 sCommands.put(commandName, cls); in addCommand()80 private static Command getCommandInstance(final String commandName) { in getCommandInstance() argument82 return sCommands.get(commandName).newInstance(); in getCommandInstance()84 throw new RuntimeException(commandName + " is not installed"); in getCommandInstance()86 throw new RuntimeException(commandName + " is not installed"); in getCommandInstance()92 for (final String commandName : sCommands.keySet()) { in help()93 System.out.println("*** " + commandName); in help()94 System.out.println(getCommandInstance(commandName).getHelp()); in help()99 private static boolean isCommand(final String commandName) { in isCommand() argument[all …]
30 /* static */ CommandType CommandUtils::getCommandType(const std::string &commandName) { in getCommandType() argument31 if (commandName == InfoExecutor::COMMAND_NAME) { in getCommandType()33 } else if (commandName == DiffExecutor::COMMAND_NAME) { in getCommandType()35 } else if (commandName == MakedictExecutor::COMMAND_NAME) { in getCommandType()37 } else if (commandName == HeaderExecutor::COMMAND_NAME) { in getCommandType()39 } else if (commandName == HelpExecutor::COMMAND_NAME) { in getCommandType()47 const std::string &commandName) { in printCommandUnknownMessage() argument49 commandName.c_str(), programName.c_str(), HelpExecutor::COMMAND_NAME); in printCommandUnknownMessage()
40 static CommandType getCommandType(const std::string &commandName);42 const std::string &commandName);
49 void ArgumentsParser::printUsage(const std::string &commandName, in printUsage() argument51 printf("Usage: %s", commandName.c_str()); in printUsage()
107 void printUsage(const std::string &commandName, const std::string &description) const;