File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ moq [flags] source-dir interface [interface2 [interface3 [...]]]
36
36
go pretty-printer: gofmt, goimports or noop (default gofmt)
37
37
-out string
38
38
output file (default stdout)
39
+ -out-dir string
40
+ output dir (exclusive with -out)
39
41
-pkg string
40
42
package name (default will infer)
41
43
-stub
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ func run(flags userFlags) error {
93
93
94
94
switch {
95
95
case flags .outDir != "" && flags .outFile != "" :
96
- return errors .New ("use only one from -out and -out-dir arguments " )
96
+ return errors .New ("use only one of the flags -out and -out-dir" )
97
97
case flags .outDir != "" :
98
98
return mockToDir (m , flags .outDir , args ... )
99
99
case flags .outFile != "" :
You can’t perform that action at this time.
0 commit comments