diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-02-02 12:15:10 +0100 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2021-01-10 17:37:52 -0800 |
commit | 96c9ed0b96aa866a526a2746067bf79109ae2f6b (patch) | |
tree | e9fd339f8fb76fbca9829711d9e501059c900d39 /src/args.rs | |
parent | aeaffebcde16db3fa505935771b19cbae9a6f658 (diff) | |
download | nitrocli-96c9ed0b96aa866a526a2746067bf79109ae2f6b.tar.gz nitrocli-96c9ed0b96aa866a526a2746067bf79109ae2f6b.tar.bz2 |
Add --no-cache option to bypass PIN cache
This patch adds a new --no-cache option that corresponds to the
NITROCLI_NO_CACHE environment variable and the no_cache configuration.
This makes the user interface more consistent as all configuration items
are now backed by both an environment variable and a command-line
option.
Diffstat (limited to 'src/args.rs')
-rw-r--r-- | src/args.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs index 7f2dc31..5a4b312 100644 --- a/src/args.rs +++ b/src/args.rs @@ -27,6 +27,9 @@ pub struct Args { /// Selects the device model to connect to #[structopt(short, long, global = true, possible_values = &DeviceModel::all_str())] pub model: Option<DeviceModel>, + /// Disables the cache for all secrets. + #[structopt(long, global = true)] + pub no_cache: bool, #[structopt(subcommand)] pub cmd: Command, } |