From af6fac9fdff843393831dd4a0bc7d7c14d2c53ca Mon Sep 17 00:00:00 2001 From: Johnny Steenbergen Date: Thu, 6 Feb 2020 17:42:48 -0800 Subject: [PATCH] chore(pkg): remove ambiguity in wrong cmd calls within influx pkg cmd there was an issue where you could call, `influx pkg summarize` and the influx cli would actually prescribe that to `influx pkg` cmd and pass summarize as an arg. This removes that ambiguity --- cmd/influx/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/influx/main.go b/cmd/influx/main.go index 3990cc5e0f..e0a0edd2a8 100644 --- a/cmd/influx/main.go +++ b/cmd/influx/main.go @@ -64,6 +64,7 @@ type genericCLIOpts struct { func (o genericCLIOpts) newCmd(use string, runE func(*cobra.Command, []string) error) *cobra.Command { cmd := &cobra.Command{ + Args: cobra.NoArgs, Use: use, RunE: runE, }