Skip to content

Commit

Permalink
provide environment variables in help text
Browse files Browse the repository at this point in the history
  • Loading branch information
cwiede committed Oct 5, 2020
1 parent 9075e87 commit fa9ffe9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions nexxT/core/AppConsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Console entry point script for starting nexxT from command line without GUI.
"""

from argparse import ArgumentParser, ArgumentTypeError
from argparse import ArgumentParser, ArgumentTypeError, RawDescriptionHelpFormatter
import logging
import signal
import sys
Expand Down Expand Up @@ -135,7 +135,20 @@ def main(withGui):
main function used as entry point
:return: None
"""
parser = ArgumentParser(description="nexxT console application")
parser = ArgumentParser(description="nexxT console application",
formatter_class=RawDescriptionHelpFormatter,
epilog="""\
The following environment variables have effect on nexxT's behaviour:
NEXXT_VARIANT:
might be set to 'nonopt' to use the non-optimized variant
NEXXT_DISABLE_CIMPL:
If set to '1', the nexxT C extensions are replaced by native python modules.
NEXXT_CEXT_PATH:
Can be set to override the default search path for the nexxT C extension.
""")
parser.add_argument("cfg", nargs='?', help=".json configuration file of the project to be loaded.")
parser.add_argument("-a", "--active", default=None, type=str,
help="active application; default: first application in config file")
Expand Down

0 comments on commit fa9ffe9

Please sign in to comment.