replace argparse.BooleanOptionalAction with store_true

This commit is contained in:
Victor Zemtsov 2022-08-09 15:36:00 +03:00
parent a65f8de44e
commit 4ce6e4406c
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ if __name__ == "__main__":
arg_parser.add_argument("kdbx_sock", type=str, nargs="?", default=None)
arg_parser.add_argument("ttl", type=int, nargs="?", default=0)
arg_parser.add_argument("--key", type=str, nargs="?", default=None)
arg_parser.add_argument("--ask-pass", action=argparse.BooleanOptionalAction)
arg_parser.add_argument("--ask-pass", action="store_true")
args = arg_parser.parse_args()
kdbx = os.path.realpath(os.path.expanduser(os.path.expandvars(args.kdbx)))