better help text
This commit is contained in:
parent
c862fac55f
commit
626b73710a
13
argv.go
13
argv.go
|
@ -31,12 +31,17 @@ type args struct {
|
|||
func (a args) Description() string {
|
||||
return "go.wit.com/apps/autogenpb " + VERSION + " Built on " + BUILDTIME + `
|
||||
|
||||
Auto Generate protocol buffer Sort() and Marshal() functions
|
||||
From a .proto file, autogenpb will:
|
||||
|
||||
go install go.wit.com/apps/autogenpb@latest
|
||||
* auto generate Sort(), Marshal() and GUI() functions in .pb.go files
|
||||
* auto format the .proto file (like goimport does for .go files)
|
||||
* encourages (enforces?) plural struct names (like rails)
|
||||
|
||||
The protobuf requires a 'standard' .proto format.
|
||||
See the git sources for an example .proto file.
|
||||
See the sources for an example .proto files
|
||||
|
||||
Example usage:
|
||||
|
||||
autogenpb --proto foo.proto --package main
|
||||
`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue