Merge "Simplify heading capitalization."
This commit is contained in:
commit
6a0e7ae072
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user