fix(launcher): print inspect as a subcommand when running with --help flag

pull/14737/head
Max U 2019-08-21 15:27:29 -07:00
parent 1d5e000cb1
commit ed7b88525b
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@ import (
"github.com/influxdata/influxdb/authorizer"
"github.com/influxdata/influxdb/bolt"
"github.com/influxdata/influxdb/chronograf/server"
"github.com/influxdata/influxdb/cmd/influxd/inspect"
"github.com/influxdata/influxdb/gather"
"github.com/influxdata/influxdb/http"
"github.com/influxdata/influxdb/inmem"
@ -189,6 +190,8 @@ func buildLauncherCommand(l *Launcher, cmd *cobra.Command) {
}
cli.BindOptions(cmd, opts)
cmd.AddCommand(inspect.NewCommand())
}
// Launcher represents the main program execution.