summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 10:38:29 -0500
committerJeff Carr <[email protected]>2025-10-26 10:38:29 -0500
commit6bce20f4a8321903804b649ffeeaef28abe8e1de (patch)
tree01e3f51dabb283435acc3a24caf88e931ff0282b /argv.go
parent4286af292a76b26e2799642060847a9cd2a04c0a (diff)
someday I'll actually get to work on zookeeperHEADv0.0.113v0.0.112masterdevel
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/argv.go b/argv.go
new file mode 100644
index 0000000..7088811
--- /dev/null
+++ b/argv.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 {
+}