Skip to content

Commit

Permalink
fix verbosity not working on silence_stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Jul 10, 2022
1 parent 15a8ae2 commit d9306bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## Fixed

- #930 - fix any parsing of 1-character subcommands
- #929 - Fixed issue where `--verbose` would not output data when it should

## [v0.2.3] - 2022-07-09

Expand Down
2 changes: 1 addition & 1 deletion src/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl CommandExt for Command {
silence_stdout: bool,
) -> Result<ExitStatus> {
self.debug(msg_info)?;
if silence_stdout && msg_info.is_verbose() {
if silence_stdout && !msg_info.is_verbose() {
self.stdout(std::process::Stdio::null());
}
self.status()
Expand Down

0 comments on commit d9306bb

Please sign in to comment.