#include <folly/cli/NestedCommandLineApp.h>
#include <iostream>
#include <glog/logging.h>
#include <folly/FileUtil.h>
#include <folly/Format.h>
#include <folly/experimental/io/FsUtil.h>
po;
namespace folly {
namespace {
std::string guessProgramName() { … }
}
ProgramExit::ProgramExit(int status, const std::string& msg)
: … { … }
constexpr StringPiece const NestedCommandLineApp::kHelpCommand;
constexpr StringPiece const NestedCommandLineApp::kVersionCommand;
NestedCommandLineApp::NestedCommandLineApp(
std::string programName,
std::string version,
std::string programHeading,
std::string programHelpFooter,
InitFunction initFunction)
: … { … }
po::options_description& NestedCommandLineApp::addCommand(
std::string name,
std::string argStr,
std::string shortHelp,
std::string fullHelp,
Command command,
folly::Optional<po::positional_options_description> positionalOptions) { … }
void NestedCommandLineApp::addAlias(std::string newName, std::string oldName) { … }
void NestedCommandLineApp::setOptionStyle(
boost::program_options::command_line_style::style_t style) { … }
void NestedCommandLineApp::displayHelp(
const po::variables_map& ,
const std::vector<std::string>& args) const { … }
void NestedCommandLineApp::displayVersion() const { … }
const std::string& NestedCommandLineApp::resolveAlias(
const std::string& name) const { … }
auto NestedCommandLineApp::findCommand(const std::string& name) const
-> const std::pair<const std::string, CommandInfo>& { … }
int NestedCommandLineApp::run(int argc, const char* const argv[]) { … }
int NestedCommandLineApp::run(const std::vector<std::string>& args) { … }
void NestedCommandLineApp::doRun(const std::vector<std::string>& args) { … }
bool NestedCommandLineApp::isBuiltinCommand(const std::string& name) const { … }
}