Prompt for password if none is given

This commit is contained in:
Pavel Kirkovsky 2021-07-20 05:44:36 -07:00
parent add5b1640e
commit 695555f26f

View File

@ -43,6 +43,7 @@ def cli():
help="Path to the folder where to store the decrypted backup")
@click.option("--password", "-p", cls=MutuallyExclusiveOption,
help="Password to use to decrypt the backup",
prompt="Enter backup password", hide_input=True, prompt_required=False,
mutually_exclusive=["key_file"])
@click.option("--key-file", "-k", cls=MutuallyExclusiveOption,
type=click.Path(exists=True),