From 39fc55472e0006826534e41d93dfea4b71134f43 Mon Sep 17 00:00:00 2001 From: Spirillen <44526987+spirillen@users.noreply.github.com> Date: Sat, 18 Jan 2025 21:37:03 +0100 Subject: [PATCH] Testing rust, c++ vs python3.12 BUILD Bob Build (22) --- tools/sort_lists_project/src/main.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/sort_lists_project/src/main.rs b/tools/sort_lists_project/src/main.rs index a64c669ac3e..413dcd5d4be 100644 --- a/tools/sort_lists_project/src/main.rs +++ b/tools/sort_lists_project/src/main.rs @@ -92,7 +92,7 @@ fn sort_file_alphanum(file_path: &str, valid_tlds: &HashSet) { } fn main() { - let matches = App::new("Sort Lists") + let app = App::new("Sort Lists") .version("1.0") .author("Your Name ") .about("Sorts and validates DNS lists") @@ -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); }