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_VERSION string constant (or read it from CMake).
- In the argument parsing section of
main(), add a strcmp(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.
The CLI binary (
tools/quant.c) currently has no way to print its version. Add a--versionflag that prints the version string (e.g.quant.cpp v0.1.0) and exits.What to do:
QUANT_VERSIONstring constant (or read it from CMake).main(), add astrcmp(argv[i], "--version")check that prints the version and returns 0.Files to touch:
tools/quant.c, optionallyCMakeLists.txtfor version defines.