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 {
|
||||
if v == "-no-color" {
|
||||
m.color = false
|
||||
m.Color = false
|
||||
args = append(args[:i], args[i+1:]...)
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue