Skip to content

Commit

Permalink
Allow setting --strict-env-vars=false
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Szwedko <[email protected]>
  • Loading branch information
jszwedko committed Mar 11, 2024
1 parent fcee1b9 commit 807194c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,15 @@ pub struct RootOpts {
/// a warning, which will result in a failure to load any such configuration file. This option
/// is deprecated and will be removed in a future version to remove the ability to downgrade
/// missing environment variables to warnings.
#[arg(long, env = "VECTOR_STRICT_ENV_VARS", default_value = "true")]
#[arg(
long,
env = "VECTOR_STRICT_ENV_VARS",
default_value = "true",
default_missing_value = "true",
num_args = 0..=1,
require_equals = true,
action = ArgAction::Set
)]
pub strict_env_vars: bool,
}

Expand Down

0 comments on commit 807194c

Please sign in to comment.