diff options
| author | Jeff Carr <[email protected]> | 2024-11-01 23:58:19 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-01 23:58:19 -0500 |
| commit | ee8a0aa3eb51d07db88d7d9c0fe8f472ea171360 (patch) | |
| tree | 539a00b66a3d8869be1c8df7b3a92860a752ab93 /main.go | |
| parent | e9cc02a060d7ac4b9f121e4defdfa29ba842ffd3 (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.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 { |
