summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-01 23:08:10 -0500
committerJeff Carr <[email protected]>2024-11-01 23:08:10 -0500
commit4d532add79dfeb7d70fd26a7b1f3b7bdc0796697 (patch)
tree587806c728b042a95e2fbb95c119382856d87e4d /argv.go
parenta152f39aab3ee4beb7fe301040dd1814d7a101ac (diff)
make the defaults the way I want. it's called 'author rules'v0.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/argv.go b/argv.go
index c0df176..583fada 100644
--- a/argv.go
+++ b/argv.go
@@ -7,12 +7,11 @@ package main
*/
type args struct {
- Repo string `arg:"positional" help:"go import path"`
- // Work bool `arg:"--work" help:"make a work directory"`
- NoWork bool `arg:"--no-work" help:"do not make or modify the go.work file"`
- GoSrc bool `arg:"--go-src" help:"only work in ~/go/src"`
- DryRun bool `arg:"--dry-run" help:"show what would be run"`
- Recursive bool `arg:"--recursive" help:"resursively clone all dependencies"`
+ Repo string `arg:"positional" help:"go import path"`
+ NoWork bool `arg:"--no-work" default:"true" help:"do not make or modify the go.work file"`
+ GoSrc bool `arg:"--go-src" default:"true" help:"only work in ~/go/src"`
+ DryRun bool `arg:"--dry-run" help:"show what would be run"`
+ Recursive bool `arg:"--recursive" default:"false" help:"resursively clone all dependencies"`
}
func (a args) Description() string {