summaryrefslogtreecommitdiff
path: root/argv.struct.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-25 01:20:39 -0500
committerJeff Carr <[email protected]>2025-10-25 01:20:39 -0500
commit0653bd60ce9276ad6245b25c60f37aefd0d1408a (patch)
treed16a8d5e55f42da3c0790d4d69060c3e180b8476 /argv.struct.go
parent16dd7c48c92289b6ff748db1cfd8bd9707acc892 (diff)
hmm. this is going to be complicated and convoluted
it feels like it is going to be impossible to handle what all the cases because everyone does different things. so, when that is the case in software development, often it is the best idea at the start to DO WHAT YOU WANT & NEED AND IGNORE EVERYTHING ELSE then see how it turns out and go from there.
Diffstat (limited to 'argv.struct.go')
-rw-r--r--argv.struct.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/argv.struct.go b/argv.struct.go
new file mode 100644
index 0000000..4a1db02
--- /dev/null
+++ b/argv.struct.go
@@ -0,0 +1,15 @@
+// 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 {
+ Test *EmptyCmd `arg:"subcommand:test" help:"test"`
+ Verbose bool `arg:"--verbose" help:"be loud about it"`
+ Force bool `arg:"--force" help:"rebuild everything"`
+}
+
+type EmptyCmd struct {
+}