def main():
    """
        azurectl - invoke the Application
    """
    docopt.__dict__['extras'] = extras
    logger.init()
    try:
        App()
    except AzureError as e:
        # known exception, log information and exit
        logger.log.error('%s: %s', type(e).__name__, format(e))
        sys.exit(1)
    except docopt.DocoptExit as e:
        # exception caught by docopt, results in usage message
        usage(e)
        sys.exit(1)
    except __HOLE__:
        # user exception, program aborted by user
        sys.exit(1)
    except Exception:
        # exception we did no expect, show python backtrace
        logger.log.error('Unexpected error:')
        raise
dataset/ETHPy150Open SUSE/azurectl/azurectl/azurectl.py/main