Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Oct 31, 2021
1 parent fa278e4 commit 91e990f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions acmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ func RunnerOf(cmds []Command, cfg Config) *Runner {
}

func (r *Runner) init() error {
if len(r.cmds) == 0 {
return errors.New("no cmds provided")
}
if r.cfg.AppName == "" {
r.cfg.AppName = os.Args[0]
}
Expand Down Expand Up @@ -116,7 +113,6 @@ func (r *Runner) init() error {
cmds := r.cmds
r.rootCmd = Command{
Name: "root",
Do: nopFunc,
subcommands: cmds,
}
if err := validateCommand(r.rootCmd); err != nil {
Expand Down

0 comments on commit 91e990f

Please sign in to comment.