File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2828
2929var (
3030 flagOneLineScript = flag .String ("e" , "" , "code\v execute code" )
31- flagColor = flag .String ("color" , "always" , "[always|never] (default: always)\v colorize the output" )
31+ flagColor = flag .String ("color" , "always" , "" )
32+ flagNoColor = flag .Bool ("nocolor" , false , "disable color" )
3233 flagCompile = flag .String ("compile" , "" , "executable-name\v compile executable with <script>.lua embedded; script is not executed" )
3334 flagDebug = flag .Bool ("D" , false , "print debug information" )
3435 _ = flag .Bool ("nologo" , false , "" )
@@ -124,7 +125,7 @@ func mains() error {
124125 flag .Usage = newUsage
125126 flag .Parse ()
126127
127- if * flagColor == "never" {
128+ if * flagColor == "never" || * flagNoColor {
128129 escEcho = ""
129130 escSend = ""
130131 escSpawn = ""
You can’t perform that action at this time.
0 commit comments