Add ----- between epilogues.

This commit is contained in:
voussoir 2021-11-18 17:06:00 -08:00
parent e995bd502d
commit 1c1bb49cb8
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -113,8 +113,12 @@ def print_helptext(text) -> None:
Print the given text to stderr, along with any epilogues added by
other modules.
'''
fulltext = [text.strip()] + sorted(epi.strip() for epi in HELPTEXT_EPILOGUES)
fulltext = '\n\n'.join(fulltext)
fulltext = []
fulltext.append(text.strip())
fulltext.extend(sorted(epi.strip() for epi in HELPTEXT_EPILOGUES))
separator = '\n' + ('-'*80) + '\n'
fulltext = separator.join(fulltext)
# Ensure one blank line above helptext.
pipeable.stderr()
pipeable.stderr(fulltext)