Skip to content

Commit e5cff31

Browse files
committed
review fixes
1 parent f3bfd38 commit e5cff31

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ moq [flags] source-dir interface [interface2 [interface3 [...]]]
3636
go pretty-printer: gofmt, goimports or noop (default gofmt)
3737
-out string
3838
output file (default stdout)
39+
-out-dir string
40+
output dir (exclusive with -out)
3941
-pkg string
4042
package name (default will infer)
4143
-stub

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func run(flags userFlags) error {
9393

9494
switch {
9595
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")
9797
case flags.outDir != "":
9898
return mockToDir(m, flags.outDir, args...)
9999
case flags.outFile != "":

0 commit comments

Comments
 (0)