Add -no-color option for subcommands
This commit is contained in:
parent
7850bb39d5
commit
cdcd11419e
|
@ -351,6 +351,7 @@ func (m *Meta) process(args []string, vars bool) []string {
|
||||||
for i, v := range args {
|
for i, v := range args {
|
||||||
if v == "-no-color" {
|
if v == "-no-color" {
|
||||||
m.color = false
|
m.color = false
|
||||||
|
m.Color = false
|
||||||
args = append(args[:i], args[i+1:]...)
|
args = append(args[:i], args[i+1:]...)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue