Skip to content

Add --version / -V flag under did cli#466

Open
SargunNarula wants to merge 1 commit into
psss:mainfrom
SargunNarula:feature/add-version-flag
Open

Add --version / -V flag under did cli#466
SargunNarula wants to merge 1 commit into
psss:mainfrom
SargunNarula:feature/add-version-flag

Conversation

@SargunNarula
Copy link
Copy Markdown

Added --version / -V flag and did.version.get_version()
It exposes version via importlib.metadata when installed, else did.spec. Exits before config load so --version works without a config file and registered flag within --help. Tests and README updated.

Assisted-by: Claude

Expose version via importlib.metadata when installed, else did.spec.
Exit before config load so --version works without a config file;
register flags for --help. Tests and README updated.

Signed-Off-by: Sargun Narula <snarula@redhat.com>
Assisted-by: Claude
@SargunNarula SargunNarula force-pushed the feature/add-version-flag branch from c09fb3c to 83fb1d0 Compare April 20, 2026 07:47
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.

1 participant