add ability to parse []string types

This commit is contained in:
Thesyncim
2013-09-24 02:41:31 +01:00
parent e8d8047f49
commit 4d9038a156
3 changed files with 54 additions and 8 deletions
+7 -8
View File
@@ -1,19 +1,19 @@
package cli
import (
"os"
"fmt"
"io/ioutil"
"os"
"strings"
)
type Command struct {
Name string
ShortName string
Usage string
Description string
Action func (context *Context)
Flags []Flag
Name string
ShortName string
Usage string
Description string
Action func(context *Context)
Flags []Flag
}
func (c Command) Run(ctx *Context) {
@@ -52,7 +52,6 @@ func (c Command) Run(ctx *Context) {
context := NewContext(ctx.App, set, ctx.globalSet)
checkCommandHelp(context, c.Name)
c.Action(context)
}