We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea3bb0a commit 689a97cCopy full SHA for 689a97c
src/commands/snapshot.rs
@@ -181,8 +181,8 @@ fn get_snapshot_dir(matches: &ArgMatches) -> Result<PathBuf> {
181
}
182
183
fn get_output_config(matches: &ArgMatches) -> Result<OutputConfig> {
184
- // Check environment variable for NO_COLOR or flag
185
- let colorized = std::env::var("NO_COLOR").is_err();
+ // Check both --no-color flag and NO_COLOR environment variable
+ let colorized = !matches.get_flag("no-color") && std::env::var("NO_COLOR").is_err();
186
187
Ok(OutputConfig {
188
format: if matches.get_flag("json") {
0 commit comments