Skip to content

A way to override --version #145

Closed
Closed

Description

@igalklebanov

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?

Activity

  1. zuixinwang commented on Jul 15, 2024

    @zuixinwang
    Contributor

    Can you provide a reproduction please 😄

  2. pi0 commented on Jul 16, 2024

    @pi0
    Member

    (reproduction is not needed 👍🏼)

  3. pi0 commented on Mar 15, 2026

    @pi0
    Member

    should be resolved by #234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions