diff options
| author | Jeff Carr <[email protected]> | 2025-01-13 05:55:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-13 05:55:36 -0600 |
| commit | 1626a2a50191ea6e0981c3e60c8791e42dec7357 (patch) | |
| tree | 56cb1406418d42c93f23095a324545ce6dba7d5f /argv.go | |
| parent | adcc0385f4198d80ae0b2c7ac5c791920dfcda5a (diff) | |
allow setting the mutex lock variable name
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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 { |
