-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[core] Add a --version CLI option #3425
Copy link
Copy link
Closed
Labels
an:enhancementAn improvement on existing features / rulesAn improvement on existing features / rulesin:cliAffects the PMD Command Line InterfaceAffects the PMD Command Line Interface
Milestone
Metadata
Metadata
Assignees
Labels
an:enhancementAn improvement on existing features / rulesAn improvement on existing features / rulesin:cliAffects the PMD Command Line InterfaceAffects the PMD Command Line Interface
Type
Fields
Give feedbackNo fields configured for issues without a type.
Is your feature request related to a problem? Please describe.
PMD doesn't have a
--versionoption to print its own version. This is contrary to the GNU standards, which makes the CLI harder to approach, esp. since-versionexists and means something else.Describe the solution you'd like Add a
--versionoption to PMD's CLI. This would print the version and exit. This would play well with #3424.Additional context #3424 warns against updating
-versionto--version, to leave room for this feature request.