Skip to content

Commit

Permalink
Remove obsolete flag warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski authored and andrews05 committed Jan 1, 2025
1 parent a72bc94 commit ffbd927
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ preset, regardless of the order you write the arguments.")
.value_parser(["0", "1", "2", "3", "4", "5", "6", "max"])
.hide_possible_values(true),
)
.arg(
Arg::new("backup")
.help("Back up modified files")
.short('b')
.long("backup")
.hide(true)
.action(ArgAction::SetTrue),
)
.arg(
Arg::new("recursive")
.help("Recurse input directories, optimizing all PNG files")
Expand Down
5 changes: 0 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ fn main() -> ExitCode {
.after_long_help("")
.get_matches_from(std::env::args());

if matches.get_flag("backup") {
error!("The --backup flag is no longer supported. Please use --out or --dir to preserve your existing files.");
return ExitCode::FAILURE;
}

let (out_file, out_dir, opts) = match parse_opts_into_struct(&matches) {
Ok(x) => x,
Err(x) => {
Expand Down

0 comments on commit ffbd927

Please sign in to comment.