You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For MapFlag is it possible to get the list of possible values added to the help output? For example:
enumclassExample {
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.
The text was updated successfully, but these errors were encountered:
For
MapFlag
is 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
.The text was updated successfully, but these errors were encountered: