feat(cli): args is need, I was wrong

main
hau 2021-01-05 16:03:48 +07:00
parent 8945cabfef
commit 3501cb3846
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ type action struct {
func (a *action) Run(c *cli.Context) error {
// Show help if there is nothing
if c.NumFlags() == 0 {
if c.NArg() == 0 && c.NumFlags() == 0 {
return cli.ShowAppHelp(c)
}