Skip to content

[core] Add a --version CLI option #3425

@oowekyala

Description

@oowekyala

Is your feature request related to a problem? Please describe.
PMD doesn't have a --version option to print its own version. This is contrary to the GNU standards, which makes the CLI harder to approach, esp. since -version exists and means something else.

Describe the solution you'd like Add a --version option to PMD's CLI. This would print the version and exit. This would play well with #3424.

Additional context #3424 warns against updating -version to --version, to leave room for this feature request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementAn improvement on existing features / rulesin:cliAffects the PMD Command Line Interface

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions