diff options
Diffstat (limited to 'src/c_utils.go')
-rw-r--r-- | src/c_utils.go | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/c_utils.go b/src/c_utils.go index 839d6c8..76ac248 100644 --- a/src/c_utils.go +++ b/src/c_utils.go @@ -252,24 +252,18 @@ 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) } -// wrong argument and exit -func c_not_an_arg(arg string) { - fmt.Println("hf: Unknown argument " + arg) - os.Exit(1) -} - 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") |