Lines Matching +full:panda +full:- +full:options
7 * http://www.apache.org/licenses/LICENSE-2.0
16 #include "options.h"
20 namespace panda::proto { namespace
21 // Options
22 Options::Options() : argparser_(new panda::PandArgParser()) {} in Options() function in panda::proto::Options
24 Options::~Options() in ~Options()
29 bool Options::Parse(int argc, const char **argv) in Parse()
31 panda::PandArg<bool> opHelp("help", false, "Print this message and exit"); in Parse()
33 panda::PandArg<std::string> protoPathInput("input", "", in Parse()
36 panda::PandArg<std::string> protoBinSuffix("suffix", "", "suffix of proto bin file"); in Parse()
37 panda::PandArg<std::string> outputFileName("output", "", "name of merged panda file"); in Parse()
38 …panda::PandArg<std::string> outputFilePath("outputFilePath", "", "output path for merged panda fil… in Parse()
40 argparser_->Add(&opHelp); in Parse()
41 argparser_->Add(&protoPathInput); in Parse()
42 argparser_->Add(&protoBinSuffix); in Parse()
43 argparser_->Add(&outputFileName); in Parse()
44 argparser_->Add(&outputFilePath); in Parse()
46 if (!argparser_->Parse(argc, argv) || opHelp.GetValue() || protoPathInput.GetValue().empty()) { in Parse()
49 ss << argparser_->GetErrorString() << std::endl; in Parse()
52 << " [OPTIONS] --input" << std::endl; in Parse()
55 ss << argparser_->GetHelpString() << std::endl; in Parse()