mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
Only expose rekey options to ansible-vault command
`ansible-vault` is the only cli command which knows how to handle the rekey options `--new-vault-id` and `--new-vault-password-file`. No point in exposing those rekey options to any of the other ansible commands. On a practical level I think this matters most in ensuring that `--help` doesn't produce any false/unhelpful output.
This commit is contained in:
parent
a0dc776f56
commit
b78ab37a94
2 changed files with 6 additions and 3 deletions
|
@ -110,6 +110,7 @@ class VaultCLI(CLI):
|
|||
|
||||
self.parser = CLI.base_parser(
|
||||
vault_opts=True,
|
||||
vault_rekey_opts=True,
|
||||
usage="usage: %%prog [%s] [options] [vaultfile.yml]" % "|".join(self.VALID_ACTIONS),
|
||||
desc="encryption/decryption utility for Ansible data files",
|
||||
epilog="\nSee '%s <command> --help' for more information on a specific command.\n\n" % os.path.basename(sys.argv[0])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue