mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 23:08:14 +00:00
add choices to words argument for recovery_device
This commit is contained in:
parent
02c319f850
commit
897d57803a
@ -349,6 +349,8 @@ class Commands(object):
|
||||
set_u2f_counter.help = 'Set U2F counter'
|
||||
firmware_update.help = 'Upload new firmware to device (must be in bootloader mode)'
|
||||
|
||||
clear_session.arguments= ()
|
||||
|
||||
get_address.arguments = (
|
||||
(('-c', '--coin'), {'type': str, 'default': 'Bitcoin'}),
|
||||
(('-n', '-address'), {'type': str}),
|
||||
@ -400,7 +402,7 @@ class Commands(object):
|
||||
wipe_device.arguments = ()
|
||||
|
||||
recovery_device.arguments = (
|
||||
(('-w', '--words'), {'type': int}),
|
||||
(('-w', '--words'), {'type': int, 'choices': [12, 18, 24], 'default': 24}),
|
||||
(('-p', '--pin-protection'), {'action': 'store_true', 'default': False}),
|
||||
(('-r', '--passphrase-protection'), {'action': 'store_true', 'default': False}),
|
||||
(('-l', '--label'), {'type': str, 'default': ''}),
|
||||
|
Loading…
Reference in New Issue
Block a user