Menu

#15 Show default values in help output

Unknown
open
nobody
None
5
2019-05-06
2018-01-02
No

Discussion

  • Daniel Aarno

    Daniel Aarno - 2019-05-06
    • Group: 1.4 --> Unknown
     
  • Daniel Aarno

    Daniel Aarno - 2019-05-06

    This becomes somewhat complicated with all the different types of Args. I think it is not worth the effort (if this is desired it can easily be added manually to the help string). If there are more requests for this, I think the best way would be to add a virtual method to Arg, something like descriptionWithDefaultValue() and then let each Arg type override that. Alternatively have a variable in Arg that gets set by each sub-class (like we do for some other things).

     

Log in to post a comment.