Skip to content

Commit

Permalink
Add a fake --render/--no-render CLI option to ease upgrading
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Jablon committed Oct 18, 2021
1 parent 7ec0c04 commit 2abe845
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vault_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ def repr_octal(value: Optional[int]) -> Optional[str]:
help="When activated, you can't overwrite a secret without "
'passing "--force" (in commands "set", "mv", "cp", etc)',
)
@click.option(
"--render/--no-render",
default=False,
help="Deprecated / unused",
)
@click.option(
"--umask",
callback=click_octal,
Expand Down Expand Up @@ -169,6 +174,7 @@ def cli(ctx: click.Context, verbose: int, umask: int, **kwargs) -> None:
(including VAULT_CLI_PASSWORD and VAULT_CLI_TOKEN).
"""
kwargs.pop("render")
kwargs.pop("config_file")
set_verbosity(verbose)
set_umask(umask)
Expand Down

0 comments on commit 2abe845

Please sign in to comment.