Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to override --version #145

Open
1 task done
igalklebanov opened this issue May 17, 2024 · 2 comments
Open
1 task done

A way to override --version #145

igalklebanov opened this issue May 17, 2024 · 2 comments

Comments

@igalklebanov
Copy link

igalklebanov commented May 17, 2024

Describe the feature

Hey 👋

❤️ citty!

I've implemented a custom version flag (aliased as v) and logic that prints versions of multiple packages.
It seems that the built-in version flag logic overrides my flag logic and fails since I don't pass a version prop in the root command's meta object.

Doesn't seem like a bug, more like a behavior that needs enhancement - the ability to override the default behavior of --version.

WDYT?

Additional information

  • Would you be willing to help implement this feature?
@zuixinwang
Copy link
Contributor

Can you provide a reproduction please 😄

@pi0
Copy link
Member

pi0 commented Jul 16, 2024

(reproduction is not needed 👍🏼)

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

No branches or pull requests

3 participants