Merge "Simplify heading capitalization."
This commit is contained in:
@@ -34,9 +34,7 @@ from ironicclient import exc
|
|||||||
|
|
||||||
class HelpFormatter(argparse.HelpFormatter):
|
class HelpFormatter(argparse.HelpFormatter):
|
||||||
def start_section(self, heading):
|
def start_section(self, heading):
|
||||||
# Title-case the headings
|
super(HelpFormatter, self).start_section(heading.capitalize())
|
||||||
heading = '%s%s' % (heading[0].upper(), heading[1:])
|
|
||||||
super(HelpFormatter, self).start_section(heading)
|
|
||||||
|
|
||||||
|
|
||||||
def define_command(subparsers, command, callback, cmd_mapper):
|
def define_command(subparsers, command, callback, cmd_mapper):
|
||||||
|
Reference in New Issue
Block a user