(local_run=False)
The main SDAPS interface routine. It initilizes all modules, parses
    the command line and passes control over to the selected function.
The main SDAPS interface routine. It initilizes all modules, parses
    the command line and passes control over to the selected function.
The main SDAPS interface routine . It initilizes all modules parses the command line and passes control over to the selected function .
def main(local_run=False):
    """The main SDAPS interface routine. It initilizes all modules, parses
    the command line and passes control over to the selected function."""
    init(local_run)

    from . import log
    log.activate_redirects()

    from . import cmdline

    cmdline = script.parser.parse_args()
    cmdline = vars(cmdline)

    log.interactive('-'*78 + '\n')
    log.interactive(('- SDAPS -- %s' % cmdline['_name']) + '\n')
    log.interactive('-'*78 + '\n')

    try:
        return cmdline['_func'](cmdline)
    except:
        import traceback
        string = traceback.format_exc()
        sys.stderr.write(string)
        sys.exit(1)
def main ( local_run = False ) : init ( local_run ) from . import log log . activate_redirects ( ) from . import cmdline cmdline = script . parser . parse_args ( ) cmdline = vars ( cmdline ) log . interactive ( '-' * 78 + '\n' ) log . interactive ( ( '- SDAPS -- %s' % cmdline [ '_name' ] ) + '\n' ) log . interactive ( '-' * 78 + '\n' ) try : return cmdline [ '_func' ] ( cmdline ) except : import traceback string = traceback . format_exc ( ) sys . stderr . write ( string ) sys . exit ( 1 )