From 6520b63cb25580420e477cba2c776b2639cbf21b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 21 Mar 2018 13:19:18 +0200 Subject: Guarantee validity of values returned by scanner for two arguments --- cli/runtime-inline.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'cli/runtime-inline.cxx') diff --git a/cli/runtime-inline.cxx b/cli/runtime-inline.cxx index abcf56a..6ae5c68 100644 --- a/cli/runtime-inline.cxx +++ b/cli/runtime-inline.cxx @@ -231,7 +231,8 @@ generate_runtime_inline (context& ctx) << ": argv_scanner (argc, argv, erase)," << endl << " option_ (option)," << endl << " options_ (&option_info_)," << endl - << " options_count_ (1)"; + << " options_count_ (1)," << endl + << " i_ (1)"; if (sep) os << "," << endl << " skip_ (false)"; @@ -249,7 +250,8 @@ generate_runtime_inline (context& ctx) << ": argv_scanner (start, argc, argv, erase)," << endl << " option_ (option)," << endl << " options_ (&option_info_)," << endl - << " options_count_ (1)"; + << " options_count_ (1)," << endl + << " i_ (1)"; if (sep) os << "," << endl << " skip_ (false)"; @@ -266,7 +268,8 @@ generate_runtime_inline (context& ctx) << "bool erase)" << endl << ": argv_scanner (argc, argv, erase)," << endl << " options_ (options)," << endl - << " options_count_ (options_count)"; + << " options_count_ (options_count)," << endl + << " i_ (1)"; if (sep) os << "," << endl << " skip_ (false)"; @@ -282,7 +285,8 @@ generate_runtime_inline (context& ctx) << "bool erase)" << endl << ": argv_scanner (start, argc, argv, erase)," << endl << " options_ (options)," << endl - << " options_count_ (options_count)"; + << " options_count_ (options_count)," << endl + << " i_ (1)"; if (sep) os << "," << endl << " skip_ (false)"; -- cgit v1.1