Skip to content

Add --version flag to CLI #4

@unamedkr

Description

@unamedkr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions