Skip to content

Commit

Permalink
chore(influx): disable failing when providing an unexpected error to …
Browse files Browse the repository at this point in the history
…influx CLI

closes: #18290
  • Loading branch information
jsteenb2 committed Jun 2, 2020
1 parent 59b82df commit 0faf919
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/influx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ func (o genericCLIOpts) newCmd(use string, runE func(*cobra.Command, []string) e
Args: cobra.NoArgs,
Use: use,
RunE: runE,
FParseErrWhitelist: cobra.FParseErrWhitelist{
// allows for unknown flags, parser does not crap the bed
// when providing a flag that doesn't exist/match.
UnknownFlags: true,
},
}

canWrapRunE := runE != nil && o.runEWrapFn != nil
Expand Down

0 comments on commit 0faf919

Please sign in to comment.