**How to reproduce**
```
for i in {1..1000}; do echo 'Hello, world!' | clickhouse-local --query "SELECT * FROM table" --structure 's String' | wc -c; done
```

This script hangs.
throw Exception("Specify either `query` or `queries-file` option", ErrorCodes::BAD_ARGUMENTS);
    }
    shared_context = Context::createShared();
    global_context = std::make_unique<Context>(Context::createGlobal(shared_context.get()));
    global_context->makeGlobalContext();
    global_context->setApplicationType(Context::ApplicationType::LOCAL);
    tryInitPath();
    std::optional<StatusFile> status;
    
    
    static KillingErrorHandler error_handler;
    Poco::ErrorHandler::set(&error_handler);
    
    registerFunctions();
    registerAggregateFunctions();
    registerTableFunctions();
    registerStorages();
    registerDictionaries();
    registerDisks();
    registerFormats();
    
    if (config().has("macros"))
        global_context->setMacros(std::make_unique<Macros>(config(), "macros", log));
    
    
    global_context->setExternalAuthenticatorsConfig(config());
    setupUsers();
    
    
    global_context->getProcessList().setMaxSize(0);