command: show full help text on usage

This commit is contained in:
Frank Schroeder 2017-10-05 18:17:54 +02:00
parent 9d81676f22
commit 7bee8e644d
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
1 changed files with 1 additions and 0 deletions

View File

@ -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) {