Skip to content

Fix / add a --version option to the CLIs#90

Merged
AlexJones0 merged 1 commit intolowRISC:masterfrom
AlexJones0:version_opt
Feb 5, 2026
Merged

Fix / add a --version option to the CLIs#90
AlexJones0 merged 1 commit intolowRISC:masterfrom
AlexJones0:version_opt

Conversation

@AlexJones0
Copy link
Contributor

Resolves #79.

Note that, rather than using the default hard-coded version, this PR instead uses importlib.metadata to get version information about the dvsim package itself, as that is what most users will probably be expecting.

Rather than using the default non-configured hardcoded version, use
`importlib.metadata` to get version information about the dvsim package
itself, as that is what most users will be expecting.

Make sure that for the main `run` argparse CLI we can use `--version`
without needing to supply a HJSON configuration file. Add the
`--version` flag to the `admin` click CLI also.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
Copy link
Contributor

@hcallahan-lowrisc hcallahan-lowrisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @AlexJones0 !

@AlexJones0 AlexJones0 added this pull request to the merge queue Feb 5, 2026
Merged via the queue into lowRISC:master with commit c2c7c78 Feb 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI does not correctly report version

2 participants