diff --git a/src/cli.rs b/src/cli.rs index 800da204..25d58b18 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -97,10 +97,10 @@ Note that this will not preserve the directory structure of the input files when .action(ArgAction::SetTrue), ) .arg( - Arg::new("pretend") + Arg::new("dry-run") .help("Do not write any files, only show compression results") - .short('P') - .long("pretend") + .short('d') + .long("dry-run") .action(ArgAction::SetTrue), ) .arg( diff --git a/src/lib.rs b/src/lib.rs index 6a449b99..42753b8e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -263,7 +263,7 @@ pub fn optimize(input: &InFile, output: &OutFile, opts: &Options) -> PngResult<( match (output, input) { (OutFile::None, _) => { - info!("{savings}: Running in pretend mode, no output"); + info!("{savings}: Dry run, no output"); } (&OutFile::StdOut, _) | (&OutFile::Path { path: None, .. }, &InFile::StdIn) => { let mut buffer = BufWriter::new(stdout()); diff --git a/src/main.rs b/src/main.rs index 506cd47a..5ec09bab 100644 --- a/src/main.rs +++ b/src/main.rs @@ -233,7 +233,7 @@ fn parse_opts_into_struct( None }; - let out_file = if matches.get_flag("pretend") { + let out_file = if matches.get_flag("dry-run") { OutFile::None } else if matches.get_flag("stdout") { OutFile::StdOut