Merge "Simplify heading capitalization."

This commit is contained in:
Jenkins 2017-01-10 01:10:36 +00:00 committed by Gerrit Code Review
commit 6a0e7ae072

View File

@ -34,9 +34,7 @@ from ironicclient import exc
class HelpFormatter(argparse.HelpFormatter):
def start_section(self, heading):
# Title-case the headings
heading = '%s%s' % (heading[0].upper(), heading[1:])
super(HelpFormatter, self).start_section(heading)
super(HelpFormatter, self).start_section(heading.capitalize())
def define_command(subparsers, command, callback, cmd_mapper):