# Initialization code. Placed in a separate Python package from the main
# app, this code allows the app created to be imported into any other
# package, module, or method.

import argparse
import logging          # Import standard logging - for levels only

from python_cowbull_server.Configurator import Configurator
from flask import Flask

#
# Step 1 - Check any command line arguments passed
#
parser = argparse.ArgumentParser()
parser.add_argument('--env',
                    dest='showenvvars',
                    default=False,
                    action='store_true',
                    help="Show the environment variables that can be set by this app")

args = parser.parse_args()

# Instantiate the Flask application as app
app = Flask(__name__)
c = Configurator()

# Decide if using ANSI or GUI
if args.showenvvars:
    print('')
    print('The following environment variables may be set to dynamically')
    print('configure the server. Alternately, these can be defined in a ')
    print('file and passed using the env. var. COWBULL_CONFIG.')
    print('')
    print('Please note. Env. Vars can be *ALL* lowercase or *ALL* uppercase.')
    print('')
    for name, desc in c.get_variables():
        print(name, '-->', desc)
    print('')
    exit(0)

c.execute_load(app)

error_handler = c.error_handler
error_handler.log(
    method="__init__",
    module="python_cowbull_server",
    message="Initialization complete.",
    logger=logging.info
)
@@ -171,24 +171,8 @@
 d.%0A%0A
-import argparse%0A
 impo
@@ -325,359 +325,8 @@
 sk%0A%0A
-#%0A# Step 1 - Check any command line arguments passed%0A#%0Aparser = argparse.ArgumentParser()%0Aparser.add_argument('--env',%0A                    dest='showenvvars',%0A                    default=False,%0A                    action='store_true',%0A                    help=%22Show the environment variables that can be set by this app%22)%0A%0Aargs = parser.parse_args()%0A%0A
 # In
@@ -410,77 +410,32 @@
 ()%0A%0A
-# Decide if using ANSI or GUI%0Aif args.showenvvars:%0A    print('')%0A    
+print('')%0Aprint('-'*80)%0A
 prin
@@ -501,20 +501,16 @@
 cally')%0A
-    
 print('c
@@ -572,20 +572,16 @@
 in a ')%0A
-    
 print('f
@@ -629,28 +629,24 @@
 L_CONFIG.')%0A
-    
 print('')%0A  
@@ -643,20 +643,16 @@
 int('')%0A
-    
 print('P
@@ -718,20 +718,30 @@
 case.')%0A
-    
+print('-'*80)%0A
 print(''
@@ -742,20 +742,16 @@
 int('')%0A
-    
 for name
@@ -783,20 +783,16 @@
 ():%0A    
-   
- 
 print(na
@@ -812,32 +812,30 @@
 sc)%0A
-    
 print('
-')%0A    exit(0
+-'*80)%0Aprint(''
 )%0A%0Ac

Remove parameter support (due to unittest module) and modify to print parameters on each run.