From 40c8afc198452f33753d72fb64858a34b53a7314 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 2 Feb 2020 12:15:10 +0100 Subject: 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. --- src/config.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index d146c14..0a220a5 100644 --- a/src/config.rs +++ b/src/config.rs @@ -65,6 +65,9 @@ impl Config { if args.model.is_some() { self.model = args.model; } + if args.no_cache { + self.no_cache = true; + } if args.verbose > 0 { self.verbosity = args.verbose; } -- cgit v1.2.1