From 958b3221456167bb9daf95d4b1258f54805bfc3a Mon Sep 17 00:00:00 2001 From: up-n-atom Date: Sat, 30 Dec 2023 18:41:34 -0500 Subject: [PATCH] Switch to password option --- xmo/xmo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmo/xmo.py b/xmo/xmo.py index e5f701d..9f7e4be 100644 --- a/xmo/xmo.py +++ b/xmo/xmo.py @@ -25,7 +25,7 @@ class EnumChoice(click.Choice): @click.group(chain=True) @click.option('-H', '--host', default='192.168.2.1', help='Hostname or host IP', type=IPv4Address) @click.option('-u', '--username', default='admin', help='Administrator username') -@click.option('-p', '--password', required=True, help='Administrator password', prompt=True, hide_input=True) +@click.password_option('-p', '--password', help='Administrator password') @click.option('-a', '--auth-method', default=EncryptionMethod.SHA512, type=EnumChoice(EncryptionMethod), help='Authentication method')