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
std::vector< optiont > options
virtual bool parse(int argc, const char **argv, const char *optstring)
Parses a commandline according to a specification given in optstring.
void set(const std::string &opt, const char *value) override
Set option option to value.
void set(const std::string &opt, const std::string &value) override
void add_infile_arg(const std::string &arg)
std::size_t get_optnr(const std::string &option)
bool have_infile_arg() const
static bool in_list(const char *option, const char **list)
std::list< argt > parsed_argvt
virtual bool parse(int argc, const char **argv)=0
void set(const std::string &opt, bool value=true) override
Set option option to value, or true if the value is omitted.
void add_arg(const std::string &arg)
argt(const std::string &_arg)