fixed missing help

This commit is contained in:
Maxim Devaev 2023-01-23 18:52:13 +02:00
parent b2169a655a
commit cd4d48c44a

View File

@ -93,10 +93,11 @@ def main(argv: (list[str] | None)=None) -> None:
cmd_setup_parser = subparsers.add_parser("init", help="Generate and show TOTP secret with QR code") cmd_setup_parser = subparsers.add_parser("init", help="Generate and show TOTP secret with QR code")
cmd_setup_parser.add_argument("-f", "--force", action="store_true", help="Overwrite an existing secret") cmd_setup_parser.add_argument("-f", "--force", action="store_true", help="Overwrite an existing secret")
cmd_setup_parser.add_argument("-n", "--name", default="", help="PiKVM instance name, FQDN by default") cmd_setup_parser.add_argument("-n", "--name", default="", help="The PiKVM instance name, FQDN by default")
cmd_setup_parser.set_defaults(cmd=_cmd_init) cmd_setup_parser.set_defaults(cmd=_cmd_init)
cmd_show_parser = subparsers.add_parser("show", help="Show the current TOTP secret with QR code") cmd_show_parser = subparsers.add_parser("show", help="Show the current TOTP secret with QR code")
cmd_show_parser.add_argument("-n", "--name", default="", help="The PiKVM instance name, FQDN by default")
cmd_show_parser.set_defaults(cmd=_cmd_show) cmd_show_parser.set_defaults(cmd=_cmd_show)
cmd_delete_parser = subparsers.add_parser("del", help="Remove TOTP secret and disable 2FA auth") cmd_delete_parser = subparsers.add_parser("del", help="Remove TOTP secret and disable 2FA auth")