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/options.ixx | |
parent | 1dea398d6f864c99b9e1c34e4a718239cfd3d8ac (diff) |
Guarantee validity of values returned by scanner for two arguments
Diffstat (limited to 'cli/options.ixx')
-rw-r--r-- | cli/options.ixx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/options.ixx b/cli/options.ixx index df89810..5e60a8c 100644 --- a/cli/options.ixx +++ b/cli/options.ixx @@ -158,6 +158,7 @@ namespace cli option_ (option), options_ (&option_info_), options_count_ (1), + i_ (1), skip_ (false) { option_info_.option = option_.c_str (); @@ -174,6 +175,7 @@ namespace cli option_ (option), options_ (&option_info_), options_count_ (1), + i_ (1), skip_ (false) { option_info_.option = option_.c_str (); @@ -189,6 +191,7 @@ namespace cli : argv_scanner (argc, argv, erase), options_ (options), options_count_ (options_count), + i_ (1), skip_ (false) { } @@ -203,6 +206,7 @@ namespace cli : argv_scanner (start, argc, argv, erase), options_ (options), options_count_ (options_count), + i_ (1), skip_ (false) { } |