diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-21 13:19:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-21 13:19:18 +0200 |
commit | 6520b63cb25580420e477cba2c776b2639cbf21b (patch) | |
tree | b166ff171780389a0f079ae587dd8cc75fb0d68e /cli/runtime-inline.cxx | |
parent | 1dea398d6f864c99b9e1c34e4a718239cfd3d8ac (diff) |
Guarantee validity of values returned by scanner for two arguments
Diffstat (limited to 'cli/runtime-inline.cxx')
-rw-r--r-- | cli/runtime-inline.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
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)"; |