From 0cd3aaf2072d459c913ad3a1868bd20c466867b3 Mon Sep 17 00:00:00 2001 From: Kensei Nakada <44139130+sanposhiho@users.noreply.github.com> Date: Sat, 17 Apr 2021 06:02:31 +0900 Subject: [PATCH] add flags documentation (#539) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index c340439c..0a2be682 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,14 @@ It supports the following flags: - `-copyright_file`: Copyright file used to add copyright header to the resulting source code. +- `-debug_parser`: Print out parser results only. + +- `-exec_only`: (reflect mode) If set, execute this reflection program. + +- `-prog_only`: (reflect mode) Only generate the reflection program; write it to stdout and exit. + +- `-write_package_comment`: Writes package documentation comment (godoc) if true. (default true) + For an example of the use of `mockgen`, see the `sample/` directory. In simple cases, you will need only the `-source` flag.