diff --git a/cli.go b/cli.go index 128768a..b117003 100644 --- a/cli.go +++ b/cli.go @@ -17,7 +17,8 @@ type Command struct { type Action func(name string) -func (a App) Run(command string) { +func (a App) Run(args []string) { + command := args[1] for _, c := range a.Commands { if c.Name == command { c.Action(command)