From 7bee8e644d11f859cf88278d03101f58be2579ca Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Thu, 5 Oct 2017 18:17:54 +0200 Subject: [PATCH] command: show full help text on usage --- command/base.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/base.go b/command/base.go index e4b309ec7a..ee28e505ee 100644 --- a/command/base.go +++ b/command/base.go @@ -143,6 +143,7 @@ func (c *BaseCommand) httpFlagsServer() *flag.FlagSet { // generates help output and adds the appropriate API flags. func (c *BaseCommand) NewFlagSet(command cli.Command) *flag.FlagSet { c.flagSet = flag.NewFlagSet("", flag.ContinueOnError) + c.flagSet.Usage = func() { c.UI.Error(command.Help()) } if c.hasClientHTTP() { c.httpFlagsClient().VisitAll(func(f *flag.Flag) {