From 8eae1baa9905e272c1cec562fc8d962c453aaee1 Mon Sep 17 00:00:00 2001 From: resolritter <17429390+resolritter@users.noreply.github.com> Date: Tue, 2 May 2023 00:01:28 -0300 Subject: [PATCH] show error message for invalid arguments --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 3ff14a4..ce76b2a 100644 --- a/main.go +++ b/main.go @@ -79,6 +79,9 @@ func main() { zvm.Settings.ToggleColor() case "--yescolor", "--yescolour": zvm.Settings.YesColor() + default: + fmt.Printf("ERROR: Invalid argument %s. Please check out --help.\n", arg) + os.Exit(1) } }