Add help epilog

This commit is contained in:
Michael Lazar 2019-08-05 23:15:15 -04:00
parent 7995bd0a63
commit 915054c615
1 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,11 @@ An Experimental Gemini Server, v{__version__}
https://github.com/michael-lazar/jetforce https://github.com/michael-lazar/jetforce
""" """
EPILOG = """
If the TLS cert/keyfile is not provided, a self-signed certificate will
automatically be generated and saved to your temporary file directory.
"""
# Gemini response status codes # Gemini response status codes
STATUS_SUCCESS = 2 STATUS_SUCCESS = 2
STATUS_NOT_FOUND = 4 STATUS_NOT_FOUND = 4
@ -353,6 +358,7 @@ def run_server():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
prog="jetforce", prog="jetforce",
description="An Experimental Gemini Protocol Server", description="An Experimental Gemini Protocol Server",
epilog=EPILOG,
formatter_class=argparse.ArgumentDefaultsHelpFormatter, formatter_class=argparse.ArgumentDefaultsHelpFormatter,
) )
parser.add_argument("--host", help="server host", default="127.0.0.1") parser.add_argument("--host", help="server host", default="127.0.0.1")