From 8414188a0956817a30daa6ab43d78c1982f7f8aa Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Mon, 14 Oct 2024 10:10:13 -0400 Subject: [PATCH] fix: enable env in cargo Signed-off-by: Devin Buhl --- minijinja-cli/Cargo.toml | 1 + minijinja-cli/src/cli.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/minijinja-cli/Cargo.toml b/minijinja-cli/Cargo.toml index af8e6afa..8fbc135d 100644 --- a/minijinja-cli/Cargo.toml +++ b/minijinja-cli/Cargo.toml @@ -28,6 +28,7 @@ contrib = ["minijinja-contrib"] anyhow = "1.0.74" ciborium = { version = "0.2.1", optional = true } clap = { version = "4.3.21", default-features = false, features = [ + "env", "std", "cargo", "help", diff --git a/minijinja-cli/src/cli.rs b/minijinja-cli/src/cli.rs index ec99fae4..a2cbfaf5 100644 --- a/minijinja-cli/src/cli.rs +++ b/minijinja-cli/src/cli.rs @@ -67,7 +67,7 @@ pub(super) fn make_command() -> Command { .env("MINIJINJA_DUMP"), #[cfg(feature = "repl")] arg!(--repl "starts the repl with the given data") - .conflicts_with_all(["expr", "template"]), + .conflicts_with_all(["expr", "template"]) .env("MINIJINJA_REPL"), #[cfg(feature = "completions")] arg!(--"generate-completion" "generate a completion script for the given shell")