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 1730102
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
### Bug Fixes

1. [18331](https://github.com/influxdata/influxdb/pull/18331): Support organization name in addition to ID in DBRP operations
1. [18335](https://github.com/influxdata/influxdb/pull/18335): Disable failing when providing an unexpected error to influx CLI

## v2.0.0-beta.11 [2020-05-26]

Expand Down
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 1730102

Please sign in to comment.