Lines Matching refs:subcommand
114 void Command::AddOptionalSubcommand(std::unique_ptr<Command>&& subcommand, bool experimental) { in AddOptionalSubcommand() argument
115 subcommand->full_subcommand_name_ = StringPrintf("%s %s", name_.data(), subcommand->name_.data()); in AddOptionalSubcommand()
117 experimental_subcommands_.push_back(std::move(subcommand)); in AddOptionalSubcommand()
119 subcommands_.push_back(std::move(subcommand)); in AddOptionalSubcommand()
147 for (auto& subcommand : subcommands_) { in Usage() local
148 std::string argline = subcommand->name_; in Usage()
153 for (StringPiece line : util::Tokenize(subcommand->description_, '\n')) { in Usage()
190 for (auto& subcommand : subcommands_) { in Execute() local
191 if (arg == subcommand->name_ || (!subcommand->short_name_.empty() in Execute()
192 && arg == subcommand->short_name_)) { in Execute()
193 return subcommand->Execute( in Execute()
197 for (auto& subcommand : experimental_subcommands_) { in Execute() local
198 if (arg == subcommand->name_ || (!subcommand->short_name_.empty() in Execute()
199 && arg == subcommand->short_name_)) { in Execute()
200 return subcommand->Execute( in Execute()