You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not possible to use long option arguments starting with -, when the long option is in the form --opt arg. The command line parsing library attempts to interpret the argument as a short option. For example:
+ ./bin/linux/influx query --host http://thurston05:8086/ --org monitor --token -3PpF_ISBadt4tS7e0BaKte1zDxryDwwb86cTQnUPmwau2UWe18rhCmMAHyJB-OZRZpfMp-3eYfEXQV_Au6I2A== 'from( bucket: "apps" ) |> range( start: 2021-09-14T19:03:20.021849485Z )'
Incorrect Usage: flag provided but not defined: -3PpF_ISBadt4tS7e0BaKte1zDxryDwwb86cTQnUPmwau2UWe18rhCmMAHyJB-OZRZpfMp-3eYfEXQV_Au6I2A
Removing the - from the token and adding it to the org causes a different error, likely the same root cause:
+ ./bin/linux/influx query --host http://thurston05:8086/ --org -monitor --token 3PpF_ISBadt4tS7e0BaKte1zDxryDwwb86cTQnUPmwau2UWe18rhCmMAHyJB-OZRZpfMp-3eYfEXQV_Au6I2A== 'from( bucket: "apps" ) |> range( start: 2021-09-14T19:03:20.021849485Z )'
Error: at most 1 query string can be specified as an argument, got 3
And finally, no leading - in any long option argument, option parsing succeeds:
It's not possible to use long option arguments starting with
-
, when the long option is in the form--opt arg
. The command line parsing library attempts to interpret the argument as a short option. For example:Removing the
-
from the token and adding it to the org causes a different error, likely the same root cause:And finally, no leading
-
in any long option argument, option parsing succeeds:@danxmoran found this PR that attempted to fix it, but it was closed as stale due to edge cases.
urfave/cli#1135
As a workaround, the option can be specified as
--opt=arg
.The text was updated successfully, but these errors were encountered: