(*arguments)
Initialise, parse arguments and perform requested operations.
Initialise, parse arguments and perform requested operations.
Initialise parse arguments and perform requested operations .
def run(*arguments):
    """Initialise, parse arguments and perform requested operations."""
    with config.TemporaryDirectory(prefix='pcbasic-') as temp_dir:
        # get settings and prepare logging
        settings = config.Settings(temp_dir, arguments)
        if settings.version:
            # print version and exit
            _show_version(settings)
        elif settings.help:
            # print usage and exit
            _show_usage()
        elif settings.convert:
            # convert and exit
            _convert(settings)
        elif settings.interface:
            # start an interpreter session with interface
            _launch_session(settings)
        else:
            # start an interpreter session with standard i/o
            _run_session(**settings.launch_params)
def run ( * arguments ) : with config . TemporaryDirectory ( prefix = 'pcbasic-' ) as temp_dir : # get settings and prepare logging settings = config . Settings ( temp_dir , arguments ) if settings . version : # print version and exit _show_version ( settings ) elif settings . help : # print usage and exit _show_usage ( ) elif settings . convert : # convert and exit _convert ( settings ) elif settings . interface : # start an interpreter session with interface _launch_session ( settings ) else : # start an interpreter session with standard i/o _run_session ( * * settings . launch_params )