summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index 457d574..9d546c4 100644
--- a/main.go
+++ b/main.go
@@ -76,11 +76,12 @@ func main() {
s, err = doSubcommand()
// if the gui starts, it doesn't yet go to the end normally
- if argv.Gui != nil {
+ if argvpb.GetCmd() == "gui" {
me.myGui.Start() // loads the GUI toolkit
doGui() // start making our forge GUI
debug() // sits here forever
}
+
// safe exits back to your shell (with timing and toolkit close)
if err != nil {
argvpb.BadExit(s, err)