make the defaults the way I want. it's called 'author rules'

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-11-01 23:08:10 -05:00
parent a152f39aab
commit 4d532add79
1 changed files with 5 additions and 6 deletions

11
argv.go
View File

@ -7,12 +7,11 @@ package main
*/ */
type args struct { type args struct {
Repo string `arg:"positional" help:"go import path"` Repo string `arg:"positional" help:"go import path"`
// Work bool `arg:"--work" help:"make a work directory"` NoWork bool `arg:"--no-work" default:"true" help:"do not make or modify the go.work file"`
NoWork bool `arg:"--no-work" help:"do not make or modify the go.work file"` GoSrc bool `arg:"--go-src" default:"true" help:"only work in ~/go/src"`
GoSrc bool `arg:"--go-src" help:"only work in ~/go/src"` DryRun bool `arg:"--dry-run" help:"show what would be run"`
DryRun bool `arg:"--dry-run" help:"show what would be run"` Recursive bool `arg:"--recursive" default:"false" help:"resursively clone all dependencies"`
Recursive bool `arg:"--recursive" help:"resursively clone all dependencies"`
} }
func (a args) Description() string { func (a args) Description() string {