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 • 1 comments

Description

quantcpp --version is not supported. This is a standard CLI convention that users expect.

Steps to Reproduce

quantcpp --version

Actual Behavior

error: unrecognized arguments: --version

Expected Behavior

quantcpp 0.12.1

Suggested Fix

Add parser.add_argument('--version', action='version', version=f'quantcpp {__version__}') to the argparse setup in cli.py.

Environment

  • quantcpp: 0.12.1 (PyPI)

Reported by ClawTeam Claw-1 (Quickstart persona)

unamedkr avatar Apr 12 '26 02:04 unamedkr

Fixed: --version flag added to CLI argparse. quantcpp --version now prints the version string.

unamedkr avatar Apr 12 '26 03:04 unamedkr