Skip to content

[Console] Support "-v" as alias for "--version"#8177

Merged
TomasVotruba merged 1 commit into
mainfrom
support-v-version-shortcut
Jul 12, 2026
Merged

[Console] Support "-v" as alias for "--version"#8177
TomasVotruba merged 1 commit into
mainfrom
support-v-version-shortcut

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Makes -v display the Rector version, same as --version / -V.

The --verbose option (which normally owns the -v shortcut) is removed in ConsoleApplication, so -v was previously an unknown option and errored out. This wires it to print the version.

# before
bin/rector -v
# The "-v" option does not exist.

# after
bin/rector -v
Rector 2.x.x

@TomasVotruba TomasVotruba enabled auto-merge (squash) July 12, 2026 11:10
@TomasVotruba TomasVotruba merged commit cc1a748 into main Jul 12, 2026
65 checks passed
@TomasVotruba TomasVotruba deleted the support-v-version-shortcut branch July 12, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant