show help when running goctl rpc template without any flags (#1685)

close #1684
master
fang duan 3 years ago committed by GitHub
parent 8bc34defc4
commit 0cc9d4ff8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -59,6 +59,10 @@ func RPCNew(c *cli.Context) error {
// RPCTemplate is the entry for generate rpc template
func RPCTemplate(c *cli.Context) error {
if c.NumFlags() == 0 {
cli.ShowCommandHelpAndExit(c, "template", 1)
}
protoFile := c.String("o")
home := c.String("home")
remote := c.String("remote")

Loading…
Cancel
Save