summaryrefslogtreecommitdiff
path: root/argv.go
blob: 9e0db4b321dd7e780dcae70a2b6eecebde6cce17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 {
}