Skip to content
Myr

Update README.md to describe help behavior without subcommands

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Clayton Coleman · committed by spf13 · parent bd75ea1 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:README.md+2 added-2 removed
214 unmodified lines
215For a more complete example of a larger application, please checkout [Hugo](http://hugo.spf13.com)216217## The Help Command218219Cobra automatically adds a help command to your application.219Cobra automatically adds a help command to your application when you have subcommands.220This will be called when a user runs 'app help'. Additionally help will also221support all other commands as input. Say for instance you have a command called222'create' without any additional configuration cobra will work when 'app help223create' is called.223create' is called. Every command will automatically have the '--help' flag added.224225### Example226227The following output is automatically generated by cobra. Nothing beyond the
172 unmodified lines