Skip to content

Commit 97820de

Browse files
committed
Fix example protoc arguments
1 parent 206451d commit 97820de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/example.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ To generate code run the `protoc` compiler pointed at your service's `.proto`
6060
files:
6161

6262
```sh
63-
$ protoc --twirp_out=. --go_out=paths=. rpc/haberdasher/service.proto
63+
$ protoc --go_out=. --twirp_out=. \
64+
--go_opt=paths=source_relative \
65+
--twirp_opt=paths=source_relative \
66+
rpc/haberdasher/service.proto
6467
```
6568

6669
See [Generator Command Line Arguments](command_line.md) for details about running the generator.

0 commit comments

Comments
 (0)