Skip to content

Add --version flag to CLI #58

@unamedkr

Description

@unamedkr

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions