From 865da9acbe2a1526082453ac403443652f6bcf43 Mon Sep 17 00:00:00 2001 From: joe Date: Thu, 28 Aug 2025 12:39:10 +0200 Subject: ok --- src/c_fuzz.go | 2 +- src/c_utils.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/c_fuzz.go b/src/c_fuzz.go index e183a85..fb230e1 100644 --- a/src/c_fuzz.go +++ b/src/c_fuzz.go @@ -84,7 +84,7 @@ func c_fuzz_find_item(str_out string, litems *ItemsList) (*ItemsNode) { if ptr.is_dir() == true { continue } - if strings.Compare(name, ptr.Host.Name) == 0 && strings.Compare(path, ptr.path()) == 0 { + if name == ptr.Host.Name && path == ptr.path() { return ptr } } diff --git a/src/c_utils.go b/src/c_utils.go index 839d6c8..ef8085a 100644 --- a/src/c_utils.go +++ b/src/c_utils.go @@ -252,13 +252,13 @@ func c_print_version() { // prints the help and exits func c_print_help() { - fmt.Println(`Usage: + fmt.Println(`usage: hf [options] -Options:`) +options:`) flag.PrintDefaults() fmt.Println(` -Report bugs to `) +report bugs to `) os.Exit(0) } @@ -269,7 +269,7 @@ func c_not_an_arg(arg string) { } func c_cli_opts() (bool, bool) { - h := flag.Bool("h", false, "print this help") + h := flag.Bool("h", false, "show usage") n := flag.Bool("n", false, "disable loop mode") s := flag.Bool("s", false, "search-only mode (implies -n)") v := flag.Bool("v", false, "print the version number and name") -- cgit v1.2.3