Commit 5bc291b7 authored by aligungr's avatar aligungr

Options parser improvement

parent 1adc0599
......@@ -48,11 +48,6 @@ opt::OptionsResult::OptionsResult(const std::vector<std::string> &args, const op
{
}
opt::OptionsResult::OptionsResult(int argc, char **argv, const opt::OptionsDescription &desc)
: OptionsResult(argc, argv, desc, false)
{
}
opt::OptionsResult::OptionsResult(int argc, char **argv, const opt::OptionsDescription &desc, bool freeArgv)
: m_description{desc}
{
......
......@@ -87,11 +87,8 @@ class OptionsResult
std::unordered_map<std::string, std::string> m_options{};
OptionsDescription m_description;
private:
OptionsResult(int argc, char **argv, const OptionsDescription &desc, bool freeArgv);
public:
OptionsResult(int argc, char **argv, const OptionsDescription &desc);
OptionsResult(int argc, char **argv, const OptionsDescription &desc, bool freeArgv = false);
OptionsResult(const std::vector<std::string> &args, const OptionsDescription &desc);
public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment