From 3fffe3963561b1e13716ca94cb8b6901285adccf Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Mon, 13 Feb 2023 17:26:16 +1100 Subject: [PATCH] Document environment variable `BINSTALL_LOG_LEVEL` (#798) Signed-off-by: Jiahao XU --- crates/bin/src/args.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/bin/src/args.rs b/crates/bin/src/args.rs index 107c452c..5cae7d82 100644 --- a/crates/bin/src/args.rs +++ b/crates/bin/src/args.rs @@ -226,6 +226,10 @@ pub struct Args { /// /// Set to `off` to disable logging completely, this will also /// disable output from `cargo-install`. + /// + /// If `--log-level` is not specified on cmdline, then cargo-binstall + /// will try to read environment variable `BINSTALL_LOG_LEVEL` and + /// interpret it as a log-level. #[clap(help_heading = "Meta", long, value_name = "LEVEL")] pub log_level: Option,