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:
Mike Lundy 2012-04-06 15:12:59 -07:00
parent 07bc64348a
commit 9352e909b8
1 changed files with 4 additions and 0 deletions

View File

@ -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),