Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Added self_package option to readme (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
deelawn authored and codyoss committed Dec 20, 2019
1 parent 41e7e9a commit d1dd49b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ It supports the following flags:
mock name (mock factory method and mock recorder will be named after the mock).
If one of the interfaces has no custom name specified, then default naming
convention will be used.

* `-self_package`: The full package import path for the generated code. The purpose
of this flag is to prevent import cycles in the generated code by trying to include
its own package. This can happen if the mock's package is set to one of its
inputs (usually the main one) and the output is stdio so mockgen cannot detect the
final output package. Setting this flag will then tell mockgen which import to exclude.

* `-copyright_file`: Copyright file used to add copyright header to the resulting source code.

Expand Down

0 comments on commit d1dd49b

Please sign in to comment.