Opened 14 years ago
Closed 13 years ago
#380 closed enhancement (fixed)
Default argument in OptionArg
Reported by: | Peter | Owned by: | Peter |
---|---|---|---|
Priority: | minor | Milestone: | yat 0.5 |
Component: | utility | Version: | 0.4.1 |
Keywords: | Cc: |
Description
Does it make sense to be able to set a default argument, i.e., if the option is not found in argv
OptionArg::value() will return this value. Also it would be nice if this value automatically would be included in description (third column in help output). How to do that?
Change History (2)
comment:1 Changed 14 years ago by
Type: | defect → enhancement |
---|
comment:2 Changed 13 years ago by
Milestone: | yat 0.x+ → yat 0.5 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Since yat 0.5 there are functions value(1) and a print_arg(1), which more or less solve this.