diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -3,6 +3,7 @@ package main // An app to submit patches for the 30 GO GUI repos import ( + "os" "strings" "go.wit.com/dev/alexflint/arg" @@ -31,6 +32,15 @@ func getVersion(repo *gitpb.Repo, name string) string { func main() { me = new(mainType) me.pp = arg.MustParse(&argv) + + if argv.Bash { + argv.doBash() + os.Exit(0) + } + if len(argv.BashAuto) != 0 { + argv.doBashAuto() + os.Exit(0) + } me.urlbase = argv.URL if me.urlbase == "" { me.urlbase = "https://go.wit.com/" |
