influxdata / influx-cli

CLI for managing resources in InfluxDB v2
MIT License
63 stars 24 forks source link

Improve parsing of token flag #378

Closed samhld closed 2 years ago

samhld commented 2 years ago

A community issue was raised that when a token starts with -, the --token flag when written without an = (--token <arg> vs --token=<value>), the CLI trips up.

We should allow for all valid tokens to be passed to either way of writing the flag. This issue is likely to manifest 1/64th of the time users use the former version of the flag.