diff options
| author | Jeff Carr <[email protected]> | 2025-09-09 03:17:02 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-09 03:17:02 -0500 |
| commit | b8cafe1bd3b0dbb8fd33bea4c806541ac7932e66 (patch) | |
| tree | 848421008ac6d7efb6154b3b831ef5a546dcc3a0 /gui.go | |
| parent | 4d2f24f64e894c4af978fc8d1dd8886e897dec3d (diff) | |
NEVER DO THIS. adding ' around that var made things break
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) |
