ansible-galaxy - add "--token" command line argument (#66376)

pull/66550/head
Sam Doran 4 years ago committed by Matt Davis
parent 0ab0e1556b
commit 1f340721a7

@ -0,0 +1,2 @@
minor_changes:
- ansible-galaxy - add ``--token`` argument which is the same as ``--api-key`` (https://github.com/ansible/ansible/issues/65955)

@ -66,7 +66,7 @@ class GalaxyCLI(CLI):
# Common arguments that apply to more than 1 action
common = opt_help.argparse.ArgumentParser(add_help=False)
common.add_argument('-s', '--server', dest='api_server', help='The Galaxy API server URL')
common.add_argument('--api-key', dest='api_key',
common.add_argument('--token', '--api-key', dest='api_key',
help='The Ansible Galaxy API key which can be found at '
'https://galaxy.ansible.com/me/preferences. You can also use ansible-galaxy login to '
'retrieve this key or set the token for the GALAXY_SERVER_LIST entry.')

Loading…
Cancel
Save