summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go17
1 files changed, 9 insertions, 8 deletions
diff --git a/argv.go b/argv.go
index 5670f61..4ae5570 100644
--- a/argv.go
+++ b/argv.go
@@ -9,14 +9,15 @@ package main
var argv args
type args struct {
- Package string `arg:"--package" help:"the package name"`
- Proto string `arg:"--proto" help:"the .proto filename"`
- Mutex bool `arg:"--mutex" default:"true" help:"insert a mutex into protoc .pb.go file"`
- Delete bool `arg:"--delete" help:"use delete with copy experiment"`
- DryRun bool `arg:"--dry-run" help:"check the .proto syntax, but don't do anything"`
- GoSrc string `arg:"--go-src" help:"default is ~/go/src. could be set to your go.work path"`
- GoPath string `arg:"--gopath" help:"the gopath of this repo"`
- Identify string `arg:"--identify" help:"identify file"`
+ Package string `arg:"--package" help:"the package name"`
+ Proto string `arg:"--proto" help:"the .proto filename"`
+ Mutex bool `arg:"--mutex" default:"true" help:"insert a mutex into protoc .pb.go file"`
+ MutexName string `arg:"--mutex-name" help:"use a var name for the mutex"`
+ Delete bool `arg:"--delete" help:"use delete with copy experiment"`
+ DryRun bool `arg:"--dry-run" help:"check the .proto syntax, but don't do anything"`
+ GoSrc string `arg:"--go-src" help:"default is ~/go/src. could be set to your go.work path"`
+ GoPath string `arg:"--gopath" help:"the gopath of this repo"`
+ Identify string `arg:"--identify" help:"identify file"`
}
func (a args) Description() string {