handle common human typos for new users

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-11-01 23:58:19 -05:00
parent e9cc02a060
commit ee8a0aa3eb
1 changed files with 10 additions and 0 deletions

10
main.go
View File

@ -27,6 +27,16 @@ func main() {
os.Exit(0) 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 // figures out where you're go.work file is
wdir, err := findWorkFile() wdir, err := findWorkFile()
if err != nil { if err != nil {