From b5031cbb5df4fa62c65ee236e085e9f57e8b3ee5 Mon Sep 17 00:00:00 2001 From: up-n-atom Date: Fri, 15 Sep 2023 15:42:09 -0400 Subject: [PATCH] Hide password entry during prompt --- xmo-remote-client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmo-remote-client.py b/xmo-remote-client.py index 0d6b871..ffb8d2c 100755 --- a/xmo-remote-client.py +++ b/xmo-remote-client.py @@ -26,7 +26,7 @@ class EnumChoice(click.Choice): @click.group(chain=True) @click.option('-H', '--host', default='192.168.2.1', help='Hostname or host IP') @click.option('-u', '--username', default='admin', help='Administrator username') -@click.option('-p', '--password', required=True, help='Administrator password', prompt=True) +@click.option('-p', '--password', required=True, help='Administrator password', prompt=True, hide_input=True) @click.option('-a', '--authentication-method', default=EncryptionMethod.SHA512, type=EnumChoice(EncryptionMethod), help='Authentication method')