summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/main.go b/main.go
index 0093d82..d581730 100644
--- a/main.go
+++ b/main.go
@@ -44,13 +44,12 @@ func getVersion(repo *gitpb.Repo, name string) string {
func main() {
me = new(mainType)
- prep.Bash2(ARGNAME, argv.DoAutoComplete) // this line should be: prep.Bash(&argv)
- me.myGui = prep.Gui() // prepares the GUI package for go-args
- me.pp = arg.MustParse(&argv)
+ me.auto = prep.Bash2(ARGNAME, argv.DoAutoComplete) // this line should be: prep.Bash(&argv)
+ me.myGui = prep.Gui() // prepares the GUI package for go-args
+ me.pp = arg.MustParse(&argv) // these three lines are becoming terrible syntax
- me.forge = forgepb.Init()
-
- me.forge.ScanRepoDir() // looks for new dirs, checks existing repos for changes
+ me.forge = forgepb.Init() // init forge.pb
+ me.forge.ScanRepoDir() // looks for new dirs, checks existing repos for changes
// initialize patches
doPatchInit()