summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.go b/main.go
index 8fd3602..c6d2b3c 100644
--- a/main.go
+++ b/main.go
@@ -27,9 +27,11 @@ var ARGNAME string = "forge"
func main() {
me = new(mainType)
- // the current os.Argv processing with go-args
- me.myGui = prep.Gui() // adds the GUI package args support
- me.sh = prep.Bash(&argv) // adds shell auto complete to go-args
+ // autocomplete must run before everythingi
+ // any writes before this to STDOUT or STDERR
+ // will cause problems for the user at the command line
+ me.myGui = prep.Gui() // adds the GUI package argv support
+ me.sh = prep.Autocomplete(&argv) // adds shell auto complete to go-args
// the current forge init process
me.forge = forgepb.Init() // init forge.pb