1
0
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:
Pavol Rusnak 2016-11-01 13:20:37 +01:00
parent 02c319f850
commit 897d57803a
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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': ''}),