diff options
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3,6 +3,8 @@ package prep // initializes logging and command line options import ( + "os" + "go.wit.com/dev/alexflint/arg" "go.wit.com/gui" ) @@ -53,6 +55,10 @@ func postMustParse(s string) string { } func Gui() *gui.Node { + if len(os.Args) > 1 && os.Args[1] == "--gui-check-plugin" { + gui.TestPluginAndExitNew(os.Args[2]) + os.Exit(0) + } arg.Register(&argGui) return gui.PreInit(postMustParse) |
