summaryrefslogtreecommitdiff
path: root/argv.struct.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-19 06:25:16 -0500
committerJeff Carr <[email protected]>2025-10-19 06:25:16 -0500
commita1792c4e1afb1e8901f05e41e61add8f39038055 (patch)
tree3d20f8851f7d84f629469f18c7c9471734346bb6 /argv.struct.go
parentf63123ba2326b9b78b3762b856713b8dc643789b (diff)
new argvv0.0.108
Diffstat (limited to 'argv.struct.go')
-rw-r--r--argv.struct.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/argv.struct.go b/argv.struct.go
new file mode 100644
index 0000000..7088811
--- /dev/null
+++ b/argv.struct.go
@@ -0,0 +1,17 @@
+// 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 {
+ Status *EmptyCmd `arg:"subcommand:status" help:"should display something"`
+ Test *EmptyCmd `arg:"subcommand:test" help:"test stuff"`
+ Daemon bool `arg:"--daemon" default:"false" help:"run in daemon mode"`
+ Port int `arg:"--port" default:"2521" help:"port to run on"`
+ URL string `arg:"--url" help:"url to use"`
+}
+
+type EmptyCmd struct {
+}