Closed DarkTyger closed 1 month ago
It's not possible currently, unfortunately. But I can see that it would be trivial to implement it at the cost of some up-front calc of a default string. It needs to be up-front, as opposed to the current way which generates the help strings on-demand, as the initial value (aka the default) can change as args are parsed. Which would change the perceived default. anway.. I'll put in on the todo list for the next thing I do. As it's a great idea!
We have a number of command-line options whose default values are mandated by a formal specification. We'd like to ensure that the default value is displayed when the user displays the help. For example:
When run with
--help
, I would anticipate seeing something along the lines of:or perhaps:
Is this doable without hard-coding the default values twice? (Once in the
lyra::val
and once in the help text?)