From 1615a2c461e4e1e798c261d76a761d82d0ae425f Mon Sep 17 00:00:00 2001 From: Johnny Steenbergen Date: Fri, 24 Apr 2020 10:11:31 -0700 Subject: [PATCH] fix(influx): add arg description into config usage --- cmd/influx/config.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/cmd/influx/config.go b/cmd/influx/config.go index 4b6f281d05..ce2d09a190 100644 --- a/cmd/influx/config.go +++ b/cmd/influx/config.go @@ -36,7 +36,7 @@ type cmdConfigBuilder struct { } func (b *cmdConfigBuilder) cmd() *cobra.Command { - cmd := b.newCmd("config", b.cmdSwitchActiveRunEFn, false) + cmd := b.newCmd("config [config name]", b.cmdSwitchActiveRunEFn, false) cmd.Short = "Config management commands" cmd.Args = cobra.ExactArgs(1) @@ -217,10 +217,8 @@ func (b *cmdConfigBuilder) printConfigs(opts configPrintOpts) error { return nil } -type ( - configPrintOpts struct { - delete bool - config config.Config - configs config.Configs - } -) +type configPrintOpts struct { + delete bool + config config.Config + configs config.Configs +}