From 897d57803ad5817a494a0d0c2abedbd3db8b8e36 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 1 Nov 2016 13:20:37 +0100 Subject: [PATCH] add choices to words argument for recovery_device --- trezorctl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trezorctl b/trezorctl index 63cc0ec411..3f07ee76e4 100755 --- a/trezorctl +++ b/trezorctl @@ -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': ''}),