quant.cpp
quant.cpp copied to clipboard
Add --version flag to CLI
The CLI binary (tools/quant.c) currently has no way to print its version. Add a --version flag that prints the version string (e.g. quant.cpp v0.1.0) and exits.
What to do:
- Define a
QUANT_VERSIONstring constant (or read it from CMake). - In the argument parsing section of
main(), add astrcmp(argv[i], "--version")check that prints the version and returns 0. - Add a brief test or example invocation in the PR description.
Files to touch: tools/quant.c, optionally CMakeLists.txt for version defines.