For MapFlag is it possible to get the list of possible values added to the help output? For example:
enum class Example {
X,
Y,
Z
};
std::unordered_map<std::string, Example> exampleMapValues{
{'thexoption', Example::X},
{'theyoption', Example::Y},
{'thezoption', Example::Z}
};
args::MapFlag<std::string, Example> exampleFlag(
arguments, "mv", "A description", { 'm', "mapvalue" }, exampleMapValues);
Currently results in help output (for that option) of:
-m[mv], --mapvalue=[mv] A description
If the possible values could be automatically added to the help output, something along the lines of:
-m[mv], --mapvalue=[mv] A description
One of: thexoption, theyoption, thezoption
Would save a lot of effort on behalf of users, and possible mistakes in forgetting to add/remove values. The information is already there as well, encoded in the unordered_map.
For
MapFlagis it possible to get the list of possible values added to the help output? For example:Currently results in help output (for that option) of:
If the possible values could be automatically added to the help output, something along the lines of:
Would save a lot of effort on behalf of users, and possible mistakes in forgetting to add/remove values. The information is already there as well, encoded in the
unordered_map.