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

Added self_package option to readme #355

Merged
merged 1 commit into from
Dec 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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