AnantLabs / nconsoler

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

Default action with all optional parameters doesn't run (help is shown instead) #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I have a console app with just a single action and all of its parameters 
marked as optional. If I try to run it without specifying anything, 
NConsoler doesn't run my action and display the help instead.

I think this could be a common scenario for console app. In my opinion you 
should display the help screen only if the user explicitly requested it 
via /? /help, etc.

Thanks.

--
Efran Cobisi
http://www.cobisi.com

Original issue reported on code.google.com by efran.co...@gmail.com on 3 Mar 2009 at 10:02

GoogleCodeExporter commented 9 years ago
Fixed in source code.

Actually I recommend you to use this ability only for readonly actions (windows 
"dir"
command is a good example), but for programs that do some actions that changes 
any
data it is better to show help by default to prevent running this program
accidentally and use something like "builder.exe run" instead.

Original comment by tihobra...@gmail.com on 4 Mar 2009 at 7:36

GoogleCodeExporter commented 9 years ago

Original comment by tihobra...@gmail.com on 4 Mar 2009 at 7:36

GoogleCodeExporter commented 9 years ago
Thanks!

--
Efran Cobisi
http://www.cobisi.com

Original comment by efran.co...@gmail.com on 4 Mar 2009 at 8:31