From ee8a0aa3eb51d07db88d7d9c0fe8f472ea171360 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 1 Nov 2024 23:58:19 -0500 Subject: [PATCH] handle common human typos for new users Signed-off-by: Jeff Carr --- main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.go b/main.go index c9ecb2d..b7f5bbd 100644 --- a/main.go +++ b/main.go @@ -27,6 +27,16 @@ func main() { os.Exit(0) } + if myargs.Repo == "version" { + log.Info(Version) + os.Exit(0) + } + + if myargs.Repo == "version" || myargs.Repo == "help" || myargs.Repo == "?" { + pp.WriteHelp(os.Stdout) + os.Exit(0) + } + // figures out where you're go.work file is wdir, err := findWorkFile() if err != nil {