From ec4335d5b6a7b713c00511337310d6574fea554b Mon Sep 17 00:00:00 2001 From: Kensei Nakada <44139130+sanposhiho@users.noreply.github.com> Date: Fri, 5 Mar 2021 23:09:46 +0900 Subject: [PATCH] Add: flags documentation --- 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.