v1.0.3: Change default behavior to always show help without subcommand; add README.md; update playbook.md
This commit is contained in:
@@ -8,8 +8,8 @@ Commands:
|
||||
- recover (offline): derive addresses from mnemonic/seed; optionally encrypt payload to PGP pubkey
|
||||
- test (offline): minimal self-test
|
||||
|
||||
Usability fix:
|
||||
- If you run without a subcommand (e.g. --mnemonic ...), it behaves like "recover".
|
||||
Usability:
|
||||
- Run with a subcommand (e.g., 'gen', 'recover'). Use -h for details.
|
||||
|
||||
Security:
|
||||
- gen/recover/test block network I/O via NetworkGuard.
|
||||
@@ -667,11 +667,7 @@ def main():
|
||||
cmd_test(args)
|
||||
return
|
||||
|
||||
# No subcommand: treat as recover if user provided recover inputs
|
||||
if args.mnemonic or args.seed or args.interactive:
|
||||
cmd_recover(args)
|
||||
return
|
||||
|
||||
# No subcommand: Always show help and exit
|
||||
parser.print_help()
|
||||
sys.exit(2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user