Go to the documentation of this file.
14 #ifndef CPROVER_GOTO_CC_GOTO_CC_CMDLINE_H
15 #define CPROVER_GOTO_CC_GOTO_CC_CMDLINE_H
25 virtual bool parse(
int argc,
const char **argv)=0;
27 static bool in_list(
const char *option,
const char **list);
30 std::size_t
get_optnr(
const std::string &option);
33 void set(
const std::string &opt,
const char *value)
override
35 set(opt, std::string{value});
38 void set(
const std::string &opt,
const std::string &value)
override
42 options[nr].values.push_back(value);
45 void set(
const std::string &opt,
bool value =
true)
override
79 #endif // CPROVER_GOTO_CC_GOTO_CC_CMDLINE_H
void set(const std::string &opt, const char *value) override
Set option option to value.
virtual bool parse(int argc, const char **argv, const char *optstring)
Parses a commandline according to a specification given in optstring.
std::vector< optiont > options
void set(const std::string &opt, bool value=true) override
Set option option to value, or true if the value is omitted.
bool have_infile_arg() const
std::size_t get_optnr(const std::string &option)
virtual bool parse(int argc, const char **argv)=0
std::list< argt > parsed_argvt
void add_infile_arg(const std::string &arg)
void add_arg(const std::string &arg)
static bool in_list(const char *option, const char **list)
argt(const std::string &_arg)
void set(const std::string &opt, const std::string &value) override