diff options
| author | Jeff Carr <[email protected]> | 2025-10-19 05:08:00 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-19 05:08:00 -0500 |
| commit | 2bbc498b02cbbe3ba68de391bffbe79ab0f226fc (patch) | |
| tree | 3a09151aeb7a1294e83d61e847e74f9a982b837b /argv.struct.go | |
| parent | c78eff62bb86594f71f9ff43ff151820ae8e94d9 (diff) | |
new argvv0.0.125
Diffstat (limited to 'argv.struct.go')
| -rw-r--r-- | argv.struct.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/argv.struct.go b/argv.struct.go new file mode 100644 index 0000000..9e0db4b --- /dev/null +++ b/argv.struct.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 { +} |
