Add the PYSAWSIM_LOG_LEVEL environmental variable.
[sawsim.git] / pysawsim / sawsim_histogram.py
index 14b94ede18227195f61fa294a835d1d116f1b288..d349316a8cd974d69ac8f3275ba34379738ada82 100644 (file)
@@ -19,6 +19,7 @@
 
 import numpy
 
+from . import PYSAWSIM_LOG_LEVEL_MSG as _PYSAWSIM_LOG_LEVEL_MSG
 from .histogram import Histogram
 from .manager import MANAGERS, get_manager
 from .sawsim import SawsimRunner
@@ -67,8 +68,10 @@ def main(argv=None):
     epilog = '\n'.join([
             'Generate an unfolding force histogram from a series of `sawsim`',
            'runs.',
-            ])
+            _PYSAWSIM_LOG_LEVEL_MSG,
+           ])
     parser = OptionParser(usage, epilog=epilog)
+    parser.format_epilog = lambda formatter: epilog+'\n'
     for option in sr.optparse_options:
         parser.add_option(option)
     parser.add_option('-w', '--bin-width', dest='bin_width',