Merge "Fix help formatting for resource-template"

This commit is contained in:
Jenkins
2014-01-06 13:05:08 +00:00
committed by Gerrit Code Review

View File

@@ -452,7 +452,8 @@ def do_resource_show(hc, args):
@utils.arg('resource', metavar='<RESOURCE>',
help='Name of the resource to generate a template for.')
@utils.arg('-F', '--format', metavar='<FORMAT>',
help="The template output format. %s" % utils.supported_formats)
help="The template output format, one of: %s"
% ', '.join(utils.supported_formats.keys()))
def do_resource_template(hc, args):
'''Generate a template based on a resource.'''
fields = {'resource_name': args.resource}