main

The entrypoint function.  This function should also handle any runtime
errors and exceptions in a cleanly fashon.

def main():
    """main

The entrypoint function.  This function should also handle any runtime
errors and exceptions in a cleanly fashon.
    """
    try:
        args = get_args()
        if 'setup_cfg' in args and 'stdeb_cfg' in args:
            _construct_cfgs_from_json(args)
        else:
            construct_cfgs(**args)
    except Exception as Error:
        print(str(Error))
        print("Exiting cleanly...")
        exit_cleanly()
    exit_cleanly(error_number=0)