diff --git a/main.go b/main.go index ede549d8359c00f9df28c981061b33588f9e1446..48b82673f176ab4fcfc2c278eafeb5ee6f51e240 100644 --- a/main.go +++ b/main.go @@ -52,8 +52,7 @@ func main() { // 没有参数时对应 run 命令 cliApp.Action = func(c *cli.Context) error { if c.NArg() == 0 { - fmt.Fprintf(os.Stderr, "no input file") - os.Exit(1) + cli.ShowAppHelpAndExit(c, 0) } waApp := app.NewApp(build_Options(c))