People said it does not work.
{
    inside_main = true;
    SCOPE_EXIT({ inside_main = false; });
    
    
    
    updatePHDRCache();
    checkHarmfulEnvironmentVariables(argv_);
    
    
    std::set_new_handler(nullptr);
    std::vector<char *> argv(argv_, argv_ + argc_);
    
    MainFunc main_func = printHelp;
    for (auto & application : clickhouse_applications)
    {
        if (isClickhouseApp(application.first, argv))
        {
            main_func = application.second;
            break;
        }
    }
    return main_func(static_cast<int>(argv.size()), argv.data());
}
#endif