From 248791013cc6bd7371bb8fb8252aa28cf61a1ce1 Mon Sep 17 00:00:00 2001 From: Benjamin Nguyen Date: Wed, 15 Mar 2023 00:10:32 -0700 Subject: [PATCH] fix problem where globs didn't work when using config --- src/render/context/mod.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/render/context/mod.rs b/src/render/context/mod.rs index 499665a8..7616422d 100644 --- a/src/render/context/mod.rs +++ b/src/render/context/mod.rs @@ -162,11 +162,6 @@ impl Context { continue; } - match config_args.value_source(id_str) { - Some(arg) => arg, - _ => continue, - }; - if let Some(user_arg) = user_args.value_source(id_str) { match user_arg { // prioritize the user arg if user provided a command line argument @@ -178,6 +173,8 @@ impl Context { } } + println!("{:?}", args); + let clargs = Context::command().get_matches_from(args); return Context::from_arg_matches(&clargs).map_err(|e| Error::Config(e)); }