Opened 13 years ago

Closed 12 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 13 years ago by Peter

Type: defectenhancement

comment:2 Changed 12 years ago by Peter

Milestone: yat 0.x+yat 0.5
Resolution: fixed
Status: newclosed

Since yat 0.5 there are functions value(1) and a print_arg(1), which more or less solve this.

Note: See TracTickets for help on using tickets.