Closed wfjm closed 4 years ago
hi @wfjm thanks for the issue 👍. Can you share the exact error message you are receiving?
The point is that no error message is given, invalid flags are simply ignored. This is a bit unusual for CLI tools, usually they complain about invalid flags. Good practice to catch typos.
that's fair, we've had user requests to explicitly remove the error when providing flags that aren't expected. They basically get ignored silently.
Steps to reproduce: List the minimal actions needed to reproduce the behavior.
docker run ... quay.io/influxdb/influxdb:2.0.0-beta
docker exec -it influxdbv2 bash
influx ping --badflag
Expected behavior: When influx is called with invalid flags the command should be abort with a proper error message.
Actual behavior: The invalid flag is simply ignored
Environment info:
uname -srm
: Linux 5.3.0-51-generic x86_64influxd version
: Influx CLI 2.0.0-beta.12 (git: ff620782eb)