From 07a9dc0024fcc97a0dcb3117bdf8933367037f4e Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Mon, 2 Feb 2015 14:53:21 -0500 Subject: [PATCH] Update README.md to describe help behavior without subcommands --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 528233d3..64c29ef1 100644 --- a/README.md +++ b/README.md @@ -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