summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-05-23 03:14:18 -0500
committerJeff Carr <[email protected]>2025-05-23 03:14:18 -0500
commit626b73710a11f4646664934108bd5cfb60353cf7 (patch)
treed1bca13d39fb1e0fed13b29fe911e63b82fb6033
parentc862fac55f22d56e9fd8b5d48bf60ea8618c7733 (diff)
-rw-r--r--argv.go13
1 files changed, 9 insertions, 4 deletions
diff --git a/argv.go b/argv.go
index c977657..0cb2c9b 100644
--- a/argv.go
+++ b/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
`
}