v.22.5Improvement

Warn for clickhouse-client --file without --external usage

Warn properly if use clickhouse-client --file without preceeding --external. Close #34747. #34765 (李扬).
Improved warning for using clickhouse-client --file without preceding --external.

Why it matters

This feature addresses improper usage of the clickhouse-client --file option when not preceded by the --external flag, which can lead to unexpected behavior or errors. By providing a clear and proper warning, it helps users avoid mistakes and improves usability.

How to use it

When using clickhouse-client with the --file option, ensure to precede it with the --external flag to avoid warnings. For example:

clickhouse-client --external --file your_script.sql