add ability to parse []string types
This commit is contained in:
+7
-8
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user