summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 10:06:13 -0500
committerJeff Carr <[email protected]>2025-10-26 10:06:13 -0500
commita75e4796680ecf33b74db60b6b780d6e7e6cc0f3 (patch)
treec53b12dc434b1b4d32edb6356388ea181efb4de2 /argv.go
parent7f6a5e689d5dee439a037ef815eaee24867c5f84 (diff)
new argv (much better than before)v0.0.129
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/argv.go b/argv.go
new file mode 100644
index 0000000..9e0db4b
--- /dev/null
+++ b/argv.go
@@ -0,0 +1,18 @@
+package main
+
+var argv args
+
+type args struct {
+ Trim bool `arg:"--trim" default:"true" help:"trim entries from go.sum"`
+ Verbose bool `arg:"--verbose" help:"show more"`
+ Restore bool `arg:"--restore" help:"only restore from go/pkg/mod/"`
+ Force bool `arg:"--force" help:"remove things and redo them no matter what"`
+ Purge *EmptyCmd `arg:"subcommand:purge" help:"purge all git notes. (this is where the autogenerated files are stored)"`
+ Smart *EmptyCmd `arg:"subcommand:lax" help:"try something but never do os.Exit(-1)"`
+ Strict *EmptyCmd `arg:"subcommand:strict" help:"never make go.* files unless everything is perfect"`
+ Bash bool `arg:"--bash" help:"generate bash completion"`
+ BashAuto []string `arg:"--auto-complete" help:"todo: move this to go-arg"`
+}
+
+type EmptyCmd struct {
+}