add an option to disable color
If --openstack-color is set in a config, it's helpful to be able to turn it back off from the command line. Change-Id: I01654b4f892cb62722a74e2e40734c847b6f53ef
This commit is contained in:
parent
07bc64348a
commit
9352e909b8
|
@ -159,6 +159,10 @@ class Openstack(plugins.Plugin):
|
|||
default=env.get("NOSE_OPENSTACK_COLOR"),
|
||||
dest="openstack_color",
|
||||
help="Colorize output. [NOSE_OPENSTACK_COLOR]")
|
||||
parser.add_option("--openstack-nocolor", action="store_false",
|
||||
default=env.get("NOSE_OPENSTACK_COLOR"),
|
||||
dest="openstack_color",
|
||||
help="Disable colorized output. [NOSE_OPENSTACK_COLOR]")
|
||||
parser.add_option("--openstack-num-slow",
|
||||
dest="openstack_num_slow",
|
||||
default=env.get("NOSE_OPENSTACK_NUM_SLOW", 5),
|
||||
|
|
Loading…
Reference in New Issue