Skip to content

Commit 373b8f9

Browse files
authored
Update usage documentation (#197)
1 parent 3b9c671 commit 373b8f9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ older Go versions, use the pre-built binaries published with
2828

2929
```
3030
moq [flags] source-dir interface [interface2 [interface3 [...]]]
31-
3231
-fmt string
3332
go pretty-printer: gofmt, goimports or noop (default gofmt)
3433
-out string
@@ -37,15 +36,17 @@ moq [flags] source-dir interface [interface2 [interface3 [...]]]
3736
package name (default will infer)
3837
-rm
3938
first remove output file, if it exists
39+
-skip-ensure
40+
suppress mock implementation check, avoid import cycle if mocks generated outside of the tested package
4041
-stub
4142
return zero values when no mock implementation is provided, do not panic
42-
-skip-ensure
43-
suppress mock implementation check, avoid import cycle if mocks
44-
generated outside of the tested package
45-
-with-resets
46-
generate functions to facilitate resetting calls made to a mock
43+
-version
44+
show the version for moq
45+
-with-resets
46+
generate functions to facilitate resetting calls made to a mock
4747
4848
Specifying an alias for the mock is also supported with the format 'interface:alias'
49+
4950
Ex: moq -pkg different . MyInterface:MyMock
5051
```
5152

0 commit comments

Comments
 (0)