mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
Update README.md to describe help behavior without subcommands
This commit is contained in:
parent
e1e66f7b4e
commit
dbfcabb984
1 changed files with 2 additions and 2 deletions
|
@ -216,11 +216,11 @@ For a more complete example of a larger application, please checkout [Hugo](http
|
|||
|
||||
## The Help Command
|
||||
|
||||
Cobra automatically adds a help command to your application.
|
||||
Cobra automatically adds a help command to your application when you have subcommands.
|
||||
This will be called when a user runs 'app help'. Additionally help will also
|
||||
support all other commands as input. Say for instance you have a command called
|
||||
'create' without any additional configuration cobra will work when 'app help
|
||||
create' is called.
|
||||
create' is called. Every command will automatically have the '--help' flag added.
|
||||
|
||||
### Example
|
||||
|
||||
|
|
Loading…
Reference in a new issue