Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AndGem committed Jun 5, 2024
1 parent 1710f23 commit d0be94c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ fn main() {
.about(
"Extracts administrative boundaries of OSM pbf files and produces polygon files compatible with Osmosis.",
)
// .setting(AppSettings::ArgRequiredElseHelp)
.arg(
Arg::new(INPUT_ARG)
.short('f')
Expand Down Expand Up @@ -104,8 +103,8 @@ fn main() {
std::process::exit(-1);
}

let overwrite_all = matches.contains_id(OVERWRITE_ARG);
let skip_all = matches.contains_id(SKIP_ARG);
let overwrite_all = matches.get_flag(OVERWRITE_ARG);
let skip_all = matches.get_flag(SKIP_ARG);

if overwrite_all && skip_all {
println!("error: cannot set both -o (--overwrite) and -s (--skip)!");
Expand Down

0 comments on commit d0be94c

Please sign in to comment.