mirror of https://github.com/status-im/consul.git
command: show full help text on usage
This commit is contained in:
parent
9d81676f22
commit
7bee8e644d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue