diff options
| author | Jeff Carr <[email protected]> | 2023-12-29 17:29:47 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-29 17:29:47 -0600 |
| commit | 867b69f5557ebe5665c0d52467b8b4a5980aa33a (patch) | |
| tree | 537b1fb5cf8f428a95b7214edccab99efd75ad6a /examples/control-panel-digitalocean/argv.go | |
| parent | a3dd21aef045f2038911585a238acac65884d314 (diff) | |
switch to using Register() from 'go-arg'
implement 'universal' use of go-arg
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'examples/control-panel-digitalocean/argv.go')
| -rw-r--r-- | examples/control-panel-digitalocean/argv.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/control-panel-digitalocean/argv.go b/examples/control-panel-digitalocean/argv.go new file mode 100644 index 0000000..7bacec2 --- /dev/null +++ b/examples/control-panel-digitalocean/argv.go @@ -0,0 +1,17 @@ +package main + +/* + this enables command line options from other packages like 'gui' and 'log' +*/ + +import ( + arg "github.com/alexflint/go-arg" + "go.wit.com/gui" + "go.wit.com/log" +) + + +func init() { + arg.MustParse() + log.Bool(true, "INIT() args.ArgDebug =", gui.ArgDebug()) +} |
