quant.cpp icon indicating copy to clipboard operation
quant.cpp copied to clipboard

Add --version flag to CLI

Open unamedkr opened this issue 7 months ago • 0 comments

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.

unamedkr avatar Apr 03 '26 14:04 unamedkr