commit
add176306a
1 changed files with 56 additions and 57 deletions
|
|
@ -370,7 +370,7 @@ if __name__ == "__main__":
|
||||||
pattern, color, style, on_stderr, on_groups, as_colormap, as_theme, as_source = __args_parse__(sys.argv, usage)
|
pattern, color, style, on_stderr, on_groups, as_colormap, as_theme, as_source = __args_parse__(sys.argv, usage)
|
||||||
|
|
||||||
# use the generator: output lines as they come
|
# use the generator: output lines as they come
|
||||||
if as_colormap == True and color != "rainbow":
|
if as_colormap is True and color != "rainbow":
|
||||||
colormap = color.split(",") # replace the colormap by the given colors
|
colormap = color.split(",") # replace the colormap by the given colors
|
||||||
color = "colormap" # use the keyword to switch to colormap instead of list of colors
|
color = "colormap" # use the keyword to switch to colormap instead of list of colors
|
||||||
|
|
||||||
|
|
@ -415,4 +415,3 @@ if __name__ == "__main__":
|
||||||
else:
|
else:
|
||||||
for colored in colorgen(sys.stdin, pattern, color, style, on_groups):
|
for colored in colorgen(sys.stdin, pattern, color, style, on_groups):
|
||||||
write(colored)
|
write(colored)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue