Allow aliasing interface name (#110)

Implementation based on #57.
This commit is contained in:
Suhas Karanth
2019-11-05 13:13:49 +05:30
committed by GitHub
parent 382bd174c0
commit 1206bf1e2a
5 changed files with 69 additions and 19 deletions

View File

@@ -30,6 +30,8 @@ func main() {
flag.Usage = func() {
fmt.Println(`moq [flags] destination interface [interface2 [interface3 [...]]]`)
flag.PrintDefaults()
fmt.Println(`Specifying an alias for the mock is also supported with the format 'interface:alias'`)
fmt.Println(`Ex: moq -pkg different . MyInterface:MyMock`)
}
flag.Parse()
args := flag.Args()