Can now change these default flags in other applications

This commit is contained in:
Summer Mousa
2014-04-29 09:21:19 -05:00
parent 820deefc90
commit a911ec75e4
3 changed files with 11 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ func (c Command) Run(ctx *Context) error {
// append help to flags
c.Flags = append(
c.Flags,
BoolFlag{"help, h", "show help"},
HelpFlag,
)
if ctx.App.EnableBashCompletion {
@@ -60,7 +60,7 @@ func (c Command) Run(ctx *Context) error {
}
var err error
if firstFlagIndex > -1 && !c.SkipFlagParsing{
if firstFlagIndex > -1 && !c.SkipFlagParsing {
args := ctx.Args()
regularArgs := args[1:firstFlagIndex]
flagArgs := args[firstFlagIndex:]