v.19.3Improvements

Allow -c Option of Client to Work as -c Option

Allow -C option of client to work as -c option. #4232 (syominsergey)
The ClickHouse client -C command-line option is enhanced to function the same way as the -c option, allowing execution of queries passed as command strings.

Why it matters

This feature resolves inconsistency between the client options by enabling -C to behave like -c, making it easier for users to execute queries directly from the command line without confusion between similar flags.

How to use it

Use the ClickHouse client with either the -C or -c option followed by the query string to execute it directly, for example:

clickhouse-client -C "SELECT 1"

or

clickhouse-client -c "SELECT 1"