mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
fixed missing help
This commit is contained in:
parent
b2169a655a
commit
cd4d48c44a
@ -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")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user