handle common human typos for new users
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
e9cc02a060
commit
ee8a0aa3eb
10
main.go
10
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 {
|
||||
|
|
Loading…
Reference in New Issue