Revert "Enable quiet when stdout is selected"
This reverts commit 849d36ec6c.
This commit is contained in:
parent
c6452beb12
commit
0ae632c7f4
2 changed files with 5 additions and 7 deletions
|
|
@ -1,7 +1,6 @@
|
|||
**Version 0.1.2** (unreleased)
|
||||
- Fix program version that is displayed when running `oxipng -V`
|
||||
- Ensure `--quiet` mode is actually quiet (@SethDusek [#20](https://github.com/shssoichiro/oxipng/pull/20))
|
||||
- Imply `--quiet` when `--stdout` is enabled
|
||||
- Use heuristics to determine best combination for `-o1` ([#21](https://github.com/shssoichiro/oxipng/issues/21))
|
||||
|
||||
**Version 0.1.1**
|
||||
|
|
|
|||
11
src/main.rs
11
src/main.rs
|
|
@ -95,7 +95,7 @@ fn main() {
|
|||
.conflicts_with("output_dir")
|
||||
.conflicts_with("stdout"))
|
||||
.arg(Arg::with_name("stdout")
|
||||
.help("Write output to stdout (implies 'quiet')")
|
||||
.help("Write output to stdout")
|
||||
.long("stdout")
|
||||
.conflicts_with("output_dir")
|
||||
.conflicts_with("output_file"))
|
||||
|
|
@ -409,6 +409,10 @@ fn parse_opts_into_struct(matches: &ArgMatches, opts: &mut oxipng::Options) -> R
|
|||
opts.out_file = PathBuf::from(x);
|
||||
}
|
||||
|
||||
if matches.is_present("stdout") {
|
||||
opts.stdout = true;
|
||||
}
|
||||
|
||||
if matches.is_present("backup") {
|
||||
opts.backup = true;
|
||||
}
|
||||
|
|
@ -445,11 +449,6 @@ fn parse_opts_into_struct(matches: &ArgMatches, opts: &mut oxipng::Options) -> R
|
|||
opts.verbosity = Some(1);
|
||||
}
|
||||
|
||||
if matches.is_present("stdout") {
|
||||
opts.stdout = true;
|
||||
opts.verbosity = None;
|
||||
}
|
||||
|
||||
if matches.is_present("no-bit-reduction") {
|
||||
opts.bit_depth_reduction = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue