diff options
| author | Jeff Carr <[email protected]> | 2025-05-29 19:17:50 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-05-29 19:17:50 -0500 |
| commit | a29e10e9116f4d5ab80210b3eb8e25b674d3338f (patch) | |
| tree | b6182f8668da2dd246092f6fe6c7dad0093d3121 /argv.go | |
| parent | 2b85f5e17dda4bea2b9403668c66e291dfa67591 (diff) | |
fixes due to 'go mod' behavior changesv0.0.90v0.0.89v0.0.88v0.0.87v0.0.86v0.0.85v0.0.84v0.0.83v0.0.82v0.0.81v0.0.80v0.0.79v0.0.78v0.0.77v0.0.76
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -7,15 +7,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"` - Strict bool `arg:"--strict" help:"never make go.* files unless everything is perfect"` - Purge bool `arg:"--purge" help:"purge all the git notes. this might be bad for you."` - Smart bool `arg:"--smart" help:"whatever seems best at the time. never os.Exit(-1)"` - Bash bool `arg:"--bash" help:"generate bash completion"` - BashAuto []string `arg:"--auto-complete" help:"todo: move this to go-arg"` + 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 { } func (args) Version() string { |
