Add no-color option to salt-key

This commit is contained in:
Thomas S Hatch 2012-06-05 15:36:18 -06:00
parent b294cf2aa9
commit c61a829144

View File

@ -625,17 +625,25 @@ class SaltKey(object):
help=('Print the output from the salt-key command in raw python '
'form, this is suitable for re-reading the output into '
'an executing python script with eval.'))
parser.add_option('--yaml-out',
default=False,
action='store_true',
dest='yaml_out',
help='Print the output from the salt-key command in yaml.')
parser.add_option('--json-out',
default=False,
action='store_true',
dest='json_out',
help='Print the output from the salt-key command in json.')
parser.add_option('--no-color',
default=False,
action='store_true',
dest='no_color',
help='Disable all colored output')
options, args = parser.parse_args()
opts = {}