Skip to content

Commit

Permalink
Testing rust, c++ vs python3.12 BUILD Bob Build (22)
Browse files Browse the repository at this point in the history
  • Loading branch information
spirillen committed Jan 18, 2025
1 parent 093af3d commit 39fc554
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/sort_lists_project/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fn sort_file_alphanum(file_path: &str, valid_tlds: &HashSet<String>) {
}

fn main() {
let matches = App::new("Sort Lists")
let app = App::new("Sort Lists")
.version("1.0")
.author("Your Name <[email protected]>")
.about("Sorts and validates DNS lists")
Expand Down Expand Up @@ -129,11 +129,12 @@ fn main() {
.long("path")
.takes_value(true)
.about("Sets the path to the source directory")
)
.get_matches();
);

let matches = app.get_matches();

if matches.is_present("help") {
println!("{}", matches.usage());
println!("{}", app.render_usage());
exit(0);
}

Expand Down

0 comments on commit 39fc554

Please sign in to comment.