diff options
Diffstat (limited to 'cli-examples/features/options.cli')
-rw-r--r-- | cli-examples/features/options.cli | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cli-examples/features/options.cli b/cli-examples/features/options.cli index ea055b3..d1e4b0c 100644 --- a/cli-examples/features/options.cli +++ b/cli-examples/features/options.cli @@ -30,10 +30,11 @@ namespace features std::vector<int> --vector | -v; 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=). + // We can also use maps and multimaps. In this case the option value is + // expected to have 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; + std::multimap<std::string, int> --multimap; }; } |