feat(cli): this program doest not need any args
parent
2bcc16dd5f
commit
7dd3918be2
2
main.go
2
main.go
|
@ -107,7 +107,7 @@ type action struct {
|
||||||
|
|
||||||
func (a *action) Run(c *cli.Context) error {
|
func (a *action) Run(c *cli.Context) error {
|
||||||
// Show help if there is nothing
|
// Show help if there is nothing
|
||||||
if c.NArg() == 0 && c.NumFlags() == 0 {
|
if c.NumFlags() == 0 {
|
||||||
return cli.ShowAppHelp(c)
|
return cli.ShowAppHelp(c)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue