Skip to content
Snippets Groups Projects
Commit c1d61eb6 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Drop extra whitespace in supported file format output.

parent d0aae3d6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment