From 06996d8c7f0205d1aedb36387a049a066599f46e Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Mon, 17 Apr 2023 19:07:54 -0500 Subject: [PATCH] fix bug with include_path -I parameter (#8915) # Description This PR fixes a problem with the `-I` parameter. I probably broke it when I added the `--ide-check ` parameter to limit the amount of errors are shown. # User-Facing Changes # Tests + Formatting # After Submitting --- src/command.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command.rs b/src/command.rs index 6f71f2e45e5b..19a0f4c17224 100644 --- a/src/command.rs +++ b/src/command.rs @@ -33,11 +33,11 @@ pub(crate) fn gather_commandline_args() -> (Vec, String, Vec) { let flag_value = match arg.as_ref() { "--commands" | "-c" | "--table-mode" | "-m" | "-e" | "--execute" | "--config" - | "--env-config" => args.next().map(|a| escape_quote_string(&a)), + | "--env-config" | "-I" => args.next().map(|a| escape_quote_string(&a)), #[cfg(feature = "plugin")] "--plugin-config" => args.next().map(|a| escape_quote_string(&a)), "--log-level" | "--log-target" | "--testbin" | "--threads" | "-t" - | "--include-path" | "-I" | "--ide-goto-def" | "--ide-hover" | "--ide-complete" + | "--include-path" | "--ide-goto-def" | "--ide-hover" | "--ide-complete" | "--ide-check" => args.next(), _ => None, };