influxdata / influx-cli

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

Token starting with `-` is interpreted as flag #376

Closed LarsStegman closed 2 years ago

LarsStegman commented 2 years ago

I have a token that starts with a -, but this is interpreted as a flag when I pass it as a value for -t. Even surrounding the token with " causes a failure.

Input

influx config create -n targetflux -u "http://localhost:8087" -t "-therestofmytoken" -o "organisation" -a

Result

Error: unknown command "organisation" for "create"