Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
horpto committed Mar 28, 2023
1 parent f3bfd38 commit e5cff31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ moq [flags] source-dir interface [interface2 [interface3 [...]]]
go pretty-printer: gofmt, goimports or noop (default gofmt)
-out string
output file (default stdout)
-out-dir string
output dir (exclusive with -out)
-pkg string
package name (default will infer)
-stub
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func run(flags userFlags) error {

switch {
case flags.outDir != "" && flags.outFile != "":
return errors.New("use only one from -out and -out-dir arguments")
return errors.New("use only one of the flags -out and -out-dir")
case flags.outDir != "":
return mockToDir(m, flags.outDir, args...)
case flags.outFile != "":
Expand Down

0 comments on commit e5cff31

Please sign in to comment.