Lines Matching defs:command
20 Stream *s, llvm::StringRef command, llvm::StringRef prefix,
23 if (!s || command.empty())
26 std::string command_str = command.str();
31 s->Printf("'%s' is not a known command.\n", command_str.c_str());
49 "about a specific command.",
51 // A list of command names forming a path to the command we want help on.
66 void CommandObjectHelp::DoExecute(Args &command, CommandReturnObject &result) {
69 const size_t argc = command.GetArgumentCount();
71 // 'help' doesn't take any arguments, other than command names. If argc is
73 // Otherwise every argument must be the name of a command or a sub-command.
88 // Get command object for the first command argument. Only search built-in
89 // command dictionary.
91 auto command_name = command[0].ref();
98 // Loop down through sub_command dictionaries until we find the command
99 // object that corresponds to the help command entered.
101 for (auto &entry : command.entries().drop_front()) {
124 command.GetCommandString(cmd_string);
127 s.Printf("ambiguous command %s", cmd_string.c_str());
161 command[0].c_str(), sstr.GetData());
165 output_strm.Printf("Help requested with ambiguous command name, possible "
172 // Maybe the user is asking for help about a command argument rather than
173 // a command.
200 // The command that they are getting help on might be ambiguous, in which
201 // case we should complete that, otherwise complete with the command the