def main(argv=sys.argv[1:]):
    if '--debug' in argv:
        # TODO: improve --debug support, done here very early so we can
        # see everything possible.
        file_path = '/dev/stderr'
        file_handle = open(file_path, 'a')
        libcloud.enable_debug(file_handle)
        logging.basicConfig(filename=file_path,
                            filemode='w',
                            level=logging.DEBUG)
    myapp = RaxCliApp()
    return myapp.run(argv)
dataset/ETHPy150Open racker/python-raxcli/raxcli/main.py/main/original