Add -no-color option for subcommands

This commit is contained in:
Radek Simko 2015-06-21 21:51:40 +01:00
parent 7850bb39d5
commit cdcd11419e
1 changed files with 1 additions and 0 deletions

View File

@ -351,6 +351,7 @@ func (m *Meta) process(args []string, vars bool) []string {
for i, v := range args {
if v == "-no-color" {
m.color = false
m.Color = false
args = append(args[:i], args[i+1:]...)
break
}