jacksonh / manos

Manos is an easy to use, easy to test, high performance web application framework that stays out of your way and makes your life ridiculously simple.
Other
455 stars 61 forks source link

manostool --init dies ungracefully if no AppName is given #121

Open dwierenga opened 13 years ago

dwierenga commented 13 years ago

When running manostool.exe --init, the application dies with a stacktrace if no AppName is given:

.\manostool.exe --init manos --init This will initialize a new application with the supplied name. error while initializing application: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException() at System.Collections.Generic.List1.get_Item(Int32 index) at Manos.Tool.Driver.Init(IList1 args) in C:\Users\dwierenga\Desktop\jacksonh-manos-313e9a8\src\manostool\Driver.cs:line 138

However the ShowHelp mentions nothing about needing an argument:

./manostool -h init manos usage is: manos [command] [options]

-h, -?, --help --init, -i --server, -s --docs, -d --build, -b --show-environment, --se

  --run, -r=VALUE