diff --git a/changelogs/fragments/76108-fix-ansible-galaxy-collection-verify-help.yaml b/changelogs/fragments/76108-fix-ansible-galaxy-collection-verify-help.yaml new file mode 100644 index 00000000000..75b8f0925f1 --- /dev/null +++ b/changelogs/fragments/76108-fix-ansible-galaxy-collection-verify-help.yaml @@ -0,0 +1,3 @@ +bugfixes: + - Fix help message for the 'ansible-galaxy collection verify' positional argument. + The positional argument must be a collection name (https://github.com/ansible/ansible/issues/76087). diff --git a/lib/ansible/cli/galaxy.py b/lib/ansible/cli/galaxy.py index b9b5eca9976..da5ac7f2aa0 100755 --- a/lib/ansible/cli/galaxy.py +++ b/lib/ansible/cli/galaxy.py @@ -376,8 +376,8 @@ class GalaxyCLI(CLI): 'found on the server and the installed copy. This does not verify dependencies.') verify_parser.set_defaults(func=self.execute_verify) - verify_parser.add_argument('args', metavar='{0}_name'.format(galaxy_type), nargs='*', help='The collection(s) name or ' - 'path/url to a tar.gz collection artifact. This is mutually exclusive with --requirements-file.') + verify_parser.add_argument('args', metavar='{0}_name'.format(galaxy_type), nargs='*', help='The installed collection(s) name. ' + 'This is mutually exclusive with --requirements-file.') verify_parser.add_argument('-i', '--ignore-errors', dest='ignore_errors', action='store_true', default=False, help='Ignore errors during verification and continue with the next specified collection.') verify_parser.add_argument('--offline', dest='offline', action='store_true', default=False,