Updates for cli and context

cli adds new global options. We'll be able to specify flags that
apply to multiple options now.

context update fixes parallelWriter function, actually writes a value out now.
This commit is contained in:
Frederick F. Kautz IV
2014-12-11 09:19:20 -08:00
parent e107c3204d
commit c2290dd1d4
9 changed files with 318 additions and 63 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ func checkSubcommandHelp(c *Context) bool {
}
func checkCompletions(c *Context) bool {
if c.GlobalBool(BashCompletionFlag.Name) && c.App.EnableBashCompletion {
if (c.GlobalBool(BashCompletionFlag.Name) || c.Bool(BashCompletionFlag.Name)) && c.App.EnableBashCompletion {
ShowCompletions(c)
return true
}