diff options
Diffstat (limited to 'cli-examples/features')
-rw-r--r-- | cli-examples/features/driver.cxx | 2 | ||||
-rw-r--r-- | cli-examples/features/options.cli | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cli-examples/features/driver.cxx b/cli-examples/features/driver.cxx index c14b5c7..a6299b9 100644 --- a/cli-examples/features/driver.cxx +++ b/cli-examples/features/driver.cxx @@ -45,7 +45,7 @@ main (int argc, char* argv[]) // --map | -m // - typedef map<std::string, std::string> str_map; + typedef map<std::string, bool> str_map; const str_map& m = o.map (); str_map::const_iterator i (m.find ("a")); diff --git a/cli-examples/features/options.cli b/cli-examples/features/options.cli index ea055b3..4065830 100644 --- a/cli-examples/features/options.cli +++ b/cli-examples/features/options.cli @@ -31,9 +31,9 @@ namespace features std::set<int> --set | -s; // We can also use maps. In this case the option value is expected to have - // two parts: the key and the value, separated by '='. For example: -m a=A - // -m =B -m c= -m d (same as -m d=). + // two parts: the key and the value, separated by '='. For example: -m a=1 + // -m =true -m c= -m d (same as -m d=). // - std::map<std::string, std::string> --map | -m; + std::map<std::string, bool> --map | -m; }; } |