AnantLabs / nconsoler

Automatically exported from code.google.com/p/nconsoler
0 stars 0 forks source link

display default values for optional parameters in usage output #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi.

NConsoler 1.0

I would like to request that nconsoler output the default values for
Optional parameters in the usage output.

For example, if I run the program without any parameters, I would expect
the usage to display that the default value for verbose is false.
[Action]
public static void DoWork(
[Required]
string param1,
[Optional(false)]
bool verbose)

usage: MyApplication param1 [/verbose]
    verbose                              default value: false

Thank you

Original issue reported on code.google.com by rami.abughazaleh@gmail.com on 10 May 2010 at 6:38

GoogleCodeExporter commented 9 years ago

Original comment by tihobra...@gmail.com on 10 Nov 2010 at 9:52

GoogleCodeExporter commented 9 years ago

Original comment by tihobra...@gmail.com on 10 Nov 2010 at 10:09

GoogleCodeExporter commented 9 years ago

Original comment by dimapa...@gmail.com on 23 Nov 2010 at 12:03

GoogleCodeExporter commented 9 years ago

Original comment by dimapa...@gmail.com on 23 Nov 2010 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by dimapa...@gmail.com on 23 Nov 2010 at 4:19

GoogleCodeExporter commented 9 years ago
the initial changes are attached as patch.  Some relayout / formatting may be 
considered.

Original comment by vitaliy....@gmail.com on 24 Nov 2010 at 12:03

Attachments:

GoogleCodeExporter commented 9 years ago
please review

Original comment by vitaliy....@gmail.com on 1 Dec 2010 at 3:39