1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-26 16:18:22 +00:00

trezorctl: add u2f-counter to recover

This commit is contained in:
robert 2019-12-28 20:38:25 -08:00 committed by matejcik
parent 20bcc68926
commit afc897d693

View File

@ -142,6 +142,7 @@ def load(
@click.option("-p", "--pin-protection", is_flag=True) @click.option("-p", "--pin-protection", is_flag=True)
@click.option("-r", "--passphrase-protection", is_flag=True) @click.option("-r", "--passphrase-protection", is_flag=True)
@click.option("-l", "--label") @click.option("-l", "--label")
@click.option("-u", "--u2f-counter", default=None, type=int)
@click.option( @click.option(
"-t", "--type", "rec_type", type=ChoiceType(RECOVERY_TYPE), default="scrambled" "-t", "--type", "rec_type", type=ChoiceType(RECOVERY_TYPE), default="scrambled"
) )
@ -154,6 +155,7 @@ def recover(
pin_protection, pin_protection,
passphrase_protection, passphrase_protection,
label, label,
u2f_counter,
rec_type, rec_type,
dry_run, dry_run,
): ):
@ -170,6 +172,7 @@ def recover(
passphrase_protection=passphrase_protection, passphrase_protection=passphrase_protection,
pin_protection=pin_protection, pin_protection=pin_protection,
label=label, label=label,
u2f_counter=u2f_counter,
language="en-US", language="en-US",
input_callback=input_callback, input_callback=input_callback,
type=rec_type, type=rec_type,