summaryrefslogtreecommitdiff
path: root/argv.struct.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-19 05:59:05 -0500
committerJeff Carr <[email protected]>2025-10-19 05:59:05 -0500
commita5ada1d59a8b56a033949a48af15bc74330cab07 (patch)
tree30b664f74e30faf782765e0f4a7dba46e8b917f8 /argv.struct.go
parent7cfeaaa25c46d87919b5a61dd2338765f40fc23c (diff)
new argvv0.0.49
Diffstat (limited to 'argv.struct.go')
-rw-r--r--argv.struct.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/argv.struct.go b/argv.struct.go
new file mode 100644
index 0000000..3d0b0c2
--- /dev/null
+++ b/argv.struct.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 {
+}