From 653aebfa1aa9121070df98ee88474b5f821fb15d Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 9 Dec 2022 10:54:24 -0500 Subject: fix: respect the `--quiet` flag in more cases (#16998) --- cli/args/flags.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cli/args') diff --git a/cli/args/flags.rs b/cli/args/flags.rs index f4bc0c862..c60bc0d99 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -2805,7 +2805,11 @@ fn test_parse(flags: &mut Flags, matches: &clap::ArgMatches) { .unwrap_or(NonZeroUsize::new(1).unwrap()) } } else if matches.is_present("jobs") { - println!( + // We can't change this to use the log crate because its not configured + // yet at this point since the flags haven't been parsed. This flag is + // deprecated though so it's not worth changing the code to use the log + // crate here and this is only done for testing anyway. + eprintln!( "{}", crate::colors::yellow("Warning: --jobs flag is deprecated. Use the --parallel flag with possibly the 'DENO_JOBS' environment variable."), ); -- cgit v1.2.3