More robust CLI parser.
This commit is contained in:
Vojtech Bubnik 2021-08-11 09:49:13 +02:00
parent 5b6f2ed061
commit 7a60e8cb3a
2 changed files with 35 additions and 58 deletions

View file

@ -2099,7 +2099,6 @@ public:
bool opt_bool(const t_config_option_key &opt_key, unsigned int idx) const { return this->option<ConfigOptionBools>(opt_key)->get_at(idx) != 0; }
// Command line processing
void read_cli(const std::vector<std::string> &tokens, t_config_option_keys* extra, t_config_option_keys* keys = nullptr);
bool read_cli(int argc, const char* const argv[], t_config_option_keys* extra, t_config_option_keys* keys = nullptr);
std::map<t_config_option_key, std::unique_ptr<ConfigOption>>::const_iterator cbegin() const { return options.cbegin(); }