Searched refs:subcommand (Results 1 – 2 of 2) sorted by relevance
114 void Command::AddOptionalSubcommand(std::unique_ptr<Command>&& subcommand, bool experimental) { in AddOptionalSubcommand() argument115 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() local148 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() local191 if (arg == subcommand->name_ || (!subcommand->short_name_.empty() in Execute()192 && arg == subcommand->short_name_)) { in Execute()[all …]
74 void AddOptionalSubcommand(std::unique_ptr<Command>&& subcommand, bool experimental = false);