diff options
Diffstat (limited to 'src/c_utils.go')
-rw-r--r-- | src/c_utils.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/c_utils.go b/src/c_utils.go index af80772..8c79ed3 100644 --- a/src/c_utils.go +++ b/src/c_utils.go @@ -258,3 +258,16 @@ func c_not_an_arg(arg string) { fmt.Println("hf: Unknown argument " + arg) os.Exit(1) } + +func c_cli_opts(arg string) { + switch arg { + case "-v", + "--version": + c_print_version() + case "-h", + "--help": + c_print_help() + default: + c_not_an_arg(os.Args[1]) + } +} |