def main():
    """Create a new Cheroot instance with arguments from the command line."""
    parser = argparse.ArgumentParser(
        description='Start an instance of the Cheroot WSGI/HTTP server.',
    )
    for arg, spec in _arg_spec.items():
        parser.add_argument(arg, **spec)
    raw_args = parser.parse_args()

    # ensure cwd in sys.path
    '' in sys.path or sys.path.insert(0, '')

    # create a server based on the arguments provided
    raw_args._wsgi_app.server(raw_args).safe_start()
def main ( ) : parser = argparse . ArgumentParser ( description = 'Start an instance of the Cheroot WSGI/HTTP server.' , ) for arg , spec in _arg_spec . items ( ) : parser . add_argument ( arg , ** spec ) raw_args = parser . parse_args ( ) '' in sys . path or sys . path . insert ( 0 , '' ) raw_args . _wsgi_app . server ( raw_args ) . safe_start ( )
Create a new Cheroot instance with arguments from the command line.