Simplify heading capitalization in shell's HelpFormatter.
Removed redundant expression for capitalizing the heading in HelpFormatter. Change-Id: I063960f6bb18486ce034ec2ae03b26cf8d63716f
This commit is contained in:
@@ -408,9 +408,7 @@ class IronicShell(object):
|
||||
|
||||
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 main():
|
||||
|
||||
Reference in New Issue
Block a user