From c395501d2de2d724e9b0d9d7a3d8a6627e8f02ce Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 8 Oct 2018 14:17:07 +0200 Subject: [PATCH] trezorctl: add no-backup option to reset-device --- trezorctl | 3 +++ trezorlib/device.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/trezorctl b/trezorctl index 611c321a4..736698b81 100755 --- a/trezorctl +++ b/trezorctl @@ -440,6 +440,7 @@ def recovery_device( @click.option("-l", "--label") @click.option("-u", "--u2f-counter", default=0) @click.option("-s", "--skip-backup", is_flag=True) +@click.option("-n", "--no-backup", is_flag=True) @click.pass_obj def reset_device( connect, @@ -450,6 +451,7 @@ def reset_device( label, u2f_counter, skip_backup, + no_backup, ): return device.reset( connect(), @@ -461,6 +463,7 @@ def reset_device( "english", u2f_counter, skip_backup, + no_backup, ) diff --git a/trezorlib/device.py b/trezorlib/device.py index f5476b797..455357960 100644 --- a/trezorlib/device.py +++ b/trezorlib/device.py @@ -154,6 +154,7 @@ def reset( language, u2f_counter=0, skip_backup=False, + no_backup=False, ): if client.features.initialized: raise RuntimeError( @@ -170,6 +171,7 @@ def reset( label=label, u2f_counter=u2f_counter, skip_backup=bool(skip_backup), + no_backup=bool(no_backup), ) resp = client.call(msg)