From cc39da9c83b3a130d160d351e63e9cbde3afea9d Mon Sep 17 00:00:00 2001 From: couriersud Date: Wed, 15 Feb 2017 01:01:04 +0100 Subject: Added state saving and loading to nltool. First step towards regression and unit tests. (nw) --- src/lib/netlist/plib/poptions.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/lib/netlist/plib/poptions.cpp') 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++; } -- cgit v1.2.3-70-g09d2