Don't report pretend mode if verbosity is set to none
This commit is contained in:
parent
234ef975f3
commit
3f3fbb6f60
1 changed files with 3 additions and 1 deletions
|
|
@ -301,7 +301,9 @@ pub fn optimize(filepath: &Path, opts: &Options) -> Result<(), String> {
|
|||
}
|
||||
|
||||
if opts.pretend {
|
||||
writeln!(&mut stderr(), "Running in pretend mode, no output").ok();
|
||||
if opts.verbosity.is_some() {
|
||||
writeln!(&mut stderr(), "Running in pretend mode, no output").ok();
|
||||
}
|
||||
} else {
|
||||
if opts.backup {
|
||||
match copy(in_file,
|
||||
|
|
|
|||
Loading…
Reference in a new issue