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 {