-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Unrecognized arguments" in CLI Example #16
Comments
It also appears that the arg usage is incorrect for
|
Ah. yeah. The example is bad. I'll make a PR for a correct example. Writing python CLIs is kind of a pain. So, Some of the options are global options and some are specific to the subcommand. Easiest way to know which are which: global arguments: confidant --help subcommand specific arguments: confidant get_service --help Here's the call I usually use for get_service: confidant --profile production get_service --service myservice-production And here's an example of a confidant client config file that would match that call: production:
url: https://confidant-production.example.com
auth_key: alias/authnz-production
auth_context:
from: myservice-production
to: confidant-production
user_type: service
token_cache_file: '/run/confidant/token_cache'
region: us-west-2 |
Ah, ok. Also, it appears that the example actually needs to have the main get_service command moved to after the auth arguments, like so
|
Yep, everything prior to |
I'm gonna keep this open until I fix the example in the code. |
From the example in the 'confidant help' command, this:
confidant get_service -u "https://confidant-production.example.com" -k "alias/authnz-production" --from myservice-production --to confidant-production --user_type service --region us-west-2 --service myservice-production
yields the error
confidant: error: unrecognized arguments: -u https://confidant-production.example.com -k alias/authnz-production --from myservice-production --to confidant-production --user_type service --region us-west-2
It should yield a url unreachable or kms auth error, not an argument error if the example is correct.
The text was updated successfully, but these errors were encountered: