v.23.4Improvement

Add Command Line Support for Dashes and Unicode Dashes in Setting Names

Add support for specifying setting names in the command line with dashes instead of underscores, for example, --max-threads instead of --max_threads. Additionally, support Unicode dash characters like instead of -- - this is useful when you communicate with a team in another company, and a manager from that team copy-pasted code from MS Word. #48985 (alekseygolub).
Support specifying ClickHouse command line settings using dashes instead of underscores, including Unicode dash characters.

Why it matters

This feature solves the inconvenience and errors caused by using underscores in command line setting names, especially when copying commands from sources like MS Word that may replace double dashes with Unicode dashes. It improves compatibility and reduces friction when sharing ClickHouse configurations across teams and tools.

How to use it

Users can now specify settings using dashes in place of underscores on the command line, for example, using --max-threads instead of --max_threads. Additionally, Unicode dash characters such as (em dash) are recognized as valid prefixes for settings.