From eb4e06455cc206f7457cb785050f9fbd720919c7 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 20 May 2024 20:20:20 +0200 Subject: even better --- src/c_hardflip.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/c_hardflip.go') diff --git a/src/c_hardflip.go b/src/c_hardflip.go index 87979e9..6c67305 100644 --- a/src/c_hardflip.go +++ b/src/c_hardflip.go @@ -72,16 +72,7 @@ type HardData struct { func main() { if len(os.Args) > 1 { - switch os.Args[1] { - case "-v", - "--version": - c_print_version() - case "-h", - "--help": - c_print_help() - default: - c_not_an_arg(os.Args[1]) - } + c_cli_opts(os.Args[1]) } data_dir := c_get_data_dir(nil) i_ui(data_dir) -- cgit v1.2.3