summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 10:38:08 -0500
committerJeff Carr <[email protected]>2025-10-26 10:38:08 -0500
commitdee05f9efde26a1b3a781781262cd49a6750f6bc (patch)
treeeda9bce04fae397254b9e91af6ba743fe96eda1e /argv.go
parentc8b4bfc00ff9f2c6d5a8502f0e93f05a641ebc57 (diff)
finally working again argvHEADv0.0.54v0.0.53masterdevel
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/argv.go b/argv.go
new file mode 100644
index 0000000..3d0b0c2
--- /dev/null
+++ b/argv.go
@@ -0,0 +1,19 @@
+// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
+// Use of this source code is governed by the GPL 3.0
+
+package main
+
+var argv args
+
+type args struct {
+ Gui *EmptyCmd `arg:"subcommand:gui" help:"open the gui"`
+ Verbose bool `arg:"--verbose" help:"talk more"`
+ Daemon bool `arg:"--daemon" default:"false" help:"run in daemon mode"`
+ UseME bool `arg:"--me" help:"use /me to connect"`
+ Port int `arg:"--port" default:"2522" help:"port to run on"`
+ URL string `arg:"--url" help:"url to use"`
+ Config string `arg:"--config" help:"config file (default is ~/.config/cloud/gus.text"`
+}
+
+type EmptyCmd struct {
+}