Skip to content

Commit

Permalink
Fix panic on args len
Browse files Browse the repository at this point in the history
  • Loading branch information
jawher committed Jul 18, 2020
1 parent 5e525d0 commit 3da148f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands.go
Expand Up @@ -125,7 +125,7 @@ func (c *Cmd) Model() model.Command {
Desc: c.desc,
LongDesc: c.LongDesc,
Options: make([]model.Option, len(c.options)),
Arguments: make([]model.Argument, len(c.options)),
Arguments: make([]model.Argument, len(c.args)),
Commands: make([]model.Command, len(c.commands)),
}

Expand Down

0 comments on commit 3da148f

Please sign in to comment.