summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-01 23:58:19 -0500
committerJeff Carr <[email protected]>2024-11-01 23:58:19 -0500
commitee8a0aa3eb51d07db88d7d9c0fe8f472ea171360 (patch)
tree539a00b66a3d8869be1c8df7b3a92860a752ab93 /main.go
parente9cc02a060d7ac4b9f121e4defdfa29ba842ffd3 (diff)
handle common human typos for new usersv0.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
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 {