53 typedef std::function<void(
55 const boost::program_options::variables_map& options,
56 const std::vector<std::string>& args)>
59 typedef std::function<void(
60 const boost::program_options::variables_map& options,
61 const std::vector<std::string>&)>
65 static constexpr
StringPiece const kVersionCommand =
"version";
94 return globalOptions_;
110 boost::program_options::options_description& addCommand(
133 int run(
int argc,
const char*
const argv[]);
134 int run(
const std::vector<std::string>& args);
139 bool isBuiltinCommand(
const std::string& name)
const;
142 void doRun(
const std::vector<std::string>& args);
150 boost::program_options::options_description
options;
153 const std::pair<const std::string, CommandInfo>& findCommand(
157 const boost::program_options::variables_map& options,
158 const std::vector<std::string>& args)
const;
160 void displayVersion()
const;
std::function< void(const std::string &command, const boost::program_options::variables_map &options, const std::vector< std::string > &args)> InitFunction
boost::program_options::options_description options
std::map< std::string, std::string > aliases_
std::string programHelpFooter_
InitFunction initFunction_
—— Concurrent Priority Queue Implementation ——
boost::program_options::options_description & globalOptions()
boost::program_options::options_description globalOptions_
static void run(EventBaseManager *ebm, EventBase *eb, folly::Baton<> *stop, const StringPiece &name)
std::function< void(const boost::program_options::variables_map &options, const std::vector< std::string > &)> Command
std::string programHeading_
void addGFlags(ProgramOptionsStyle style=ProgramOptionsStyle::GNU)
std::map< std::string, CommandInfo > commands_
std::set< folly::StringPiece > builtinCommands_
po::options_description getGFlags(ProgramOptionsStyle style)