diff options
| -rw-r--r-- | main.go | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |
