Commit c1d61eb6 authored by Chris Lamb's avatar Chris Lamb

Drop extra whitespace in supported file format output.

parent d0aae3d6
......@@ -276,9 +276,13 @@ class HelpFormatter(argparse.HelpFormatter):
if not set(sys.argv) & {'--help', '-h'}:
return val
val = '{}\n\nfile formats supported:\n'.format(val)
for x in sorted(ComparatorManager().get_descriptions(), key=str.title):
val = '{}{}- {}{}.\n\n'.format(val, ' ' * 24, x[0].upper(), x[1:])
descriptions = list(sorted(ComparatorManager().get_descriptions()))
val = '{}\n\nfile formats supported:\n{}{} and {}.\n'.format(
val,
' ' * 24,
', '.join(descriptions[:-1]),
descriptions[-1],
)
return val
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment