diff options
author | 2017-02-15 01:01:04 +0100 | |
---|---|---|
committer | 2017-02-15 01:01:51 +0100 | |
commit | cc39da9c83b3a130d160d351e63e9cbde3afea9d (patch) | |
tree | 7ebee2f931b76520e69abe91910b1760b5e5143f /src/lib/netlist/plib/poptions.cpp | |
parent | 74e690d654b64cf57e0491d9ae3ed6ae72623ff3 (diff) |
Added state saving and loading to nltool.
First step towards regression and unit tests. (nw)
Diffstat (limited to 'src/lib/netlist/plib/poptions.cpp')
-rw-r--r-- | src/lib/netlist/plib/poptions.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/netlist/plib/poptions.cpp b/src/lib/netlist/plib/poptions.cpp index fc2793c40f3..9defcf84975 100644 --- a/src/lib/netlist/plib/poptions.cpp +++ b/src/lib/netlist/plib/poptions.cpp @@ -31,7 +31,8 @@ namespace plib { } option::option(options &parent, pstring ashort, pstring along, pstring help, bool has_argument) - : option_base(parent, help), m_short(ashort), m_long(along), m_has_argument(has_argument) + : option_base(parent, help), m_short(ashort), m_long(along), + m_has_argument(has_argument), m_specified(false) { } @@ -149,13 +150,13 @@ namespace plib { { if (has_equal_arg) { - if (opt->parse(opt_arg) != 0) + if (opt->do_parse(opt_arg) != 0) return i; } else { i++; // FIXME: are there more arguments? - if (opt->parse(pstring(argv[i], pstring::UTF8)) != 0) + if (opt->do_parse(pstring(argv[i], pstring::UTF8)) != 0) return i - 1; } } @@ -163,7 +164,7 @@ namespace plib { { if (has_equal_arg) return i; - opt->parse(""); + opt->do_parse(""); } i++; } |