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