Added anyio-mode and detect the asyncio-mode CLI option (#1242)