summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-07 08:58:24 -0600
committerJeff Carr <[email protected]>2025-02-07 08:58:24 -0600
commit9da0b6973450c082e1771d523c8b2becabf25862 (patch)
tree00dc6fb4730c8ef4f139ee79616afa8295297673 /argv.go
parent8130ffd25b3a4b43eb1d0e43afeb6dd27064fa6a (diff)
add bash autocomplete
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/argv.go b/argv.go
index 7c6e867..d86b6cd 100644
--- a/argv.go
+++ b/argv.go
@@ -7,13 +7,15 @@ 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)"`
+ 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"`
}
func (args) Version() string {