From afc897d6930fbcaf32626f41ce1e4528287e99b7 Mon Sep 17 00:00:00 2001 From: robert Date: Sat, 28 Dec 2019 20:38:25 -0800 Subject: [PATCH] trezorctl: add u2f-counter to recover --- python/src/trezorlib/cli/device.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/src/trezorlib/cli/device.py b/python/src/trezorlib/cli/device.py index be79f85345..bbc07c8bd4 100644 --- a/python/src/trezorlib/cli/device.py +++ b/python/src/trezorlib/cli/device.py @@ -142,6 +142,7 @@ def load( @click.option("-p", "--pin-protection", is_flag=True) @click.option("-r", "--passphrase-protection", is_flag=True) @click.option("-l", "--label") +@click.option("-u", "--u2f-counter", default=None, type=int) @click.option( "-t", "--type", "rec_type", type=ChoiceType(RECOVERY_TYPE), default="scrambled" ) @@ -154,6 +155,7 @@ def recover( pin_protection, passphrase_protection, label, + u2f_counter, rec_type, dry_run, ): @@ -170,6 +172,7 @@ def recover( passphrase_protection=passphrase_protection, pin_protection=pin_protection, label=label, + u2f_counter=u2f_counter, language="en-US", input_callback=input_callback, type=rec_type,