JasperFx / oakton

Parsing and Utilities for Command Line Tools in .Net
http://jasperfx.github.io/oakton
Apache License 2.0
308 stars 41 forks source link

Ability to specify a default command #7

Closed jeremydmiller closed 8 years ago

jeremydmiller commented 8 years ago

Done explicitly, and by assuming that a single command means that that's the default. Should help w/ the new dotnet extensibility

jeremydmiller commented 8 years ago

Do it by adding a default command to CommandFactory. If the first arg doesn't match anything and there's no --help in there, go to the default