diff options
author | joe <rbo@gmx.us> | 2025-08-28 12:39:10 +0200 |
---|---|---|
committer | joe <rbo@gmx.us> | 2025-08-28 12:39:10 +0200 |
commit | 865da9acbe2a1526082453ac403443652f6bcf43 (patch) | |
tree | ab2af116df961b01939209b082d246b806317a88 /src | |
parent | quick fix (diff) | |
download | hardflip-865da9acbe2a1526082453ac403443652f6bcf43.tar.gz hardflip-865da9acbe2a1526082453ac403443652f6bcf43.tar.bz2 hardflip-865da9acbe2a1526082453ac403443652f6bcf43.tar.xz hardflip-865da9acbe2a1526082453ac403443652f6bcf43.tar.zst hardflip-865da9acbe2a1526082453ac403443652f6bcf43.zip |
ok
Diffstat (limited to '')
-rw-r--r-- | src/c_fuzz.go | 2 | ||||
-rw-r--r-- | 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 <rbo@gmx.us>`) +report bugs to <rbo@gmx.us>`) 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") |