Skip to content

GH-92: Add "--version" alias to the version command#146

Merged
Ostrzyciel merged 4 commits intomainfrom
GH-92/add--version
Jul 4, 2025
Merged

GH-92: Add "--version" alias to the version command#146
Ostrzyciel merged 4 commits intomainfrom
GH-92/add--version

Conversation

@niegrzybkowski
Copy link
Contributor

Closes #92.

This does feel quite dirty, since it's a command that pretends to be an option. However, to my knowledge of caseapp, implementing it as an actual option would require some awkward changes in the code for no real benefit.

@niegrzybkowski niegrzybkowski self-assigned this Jul 3, 2025
@niegrzybkowski niegrzybkowski linked an issue Jul 3, 2025 that may be closed by this pull request
@niegrzybkowski niegrzybkowski requested a review from Ostrzyciel July 3, 2025 15:06
Copy link
Member

@Ostrzyciel Ostrzyciel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please confirm that you tested the built app and it works as intended.

@niegrzybkowski
Copy link
Contributor Author

Yes, I've built the assembly jar and it works as intended.
There are a few rough edges if you try combine --version with options (--help --version fails and shows the generic usage text, --version --help shows version's help).

I also added a test.

Copy link
Member

@Ostrzyciel Ostrzyciel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also mark comments that were resolved as "resolved" :) this helps tkdy up the discussion.

@Ostrzyciel Ostrzyciel enabled auto-merge (squash) July 4, 2025 07:13
@Ostrzyciel Ostrzyciel merged commit 42effe4 into main Jul 4, 2025
7 checks passed
@Ostrzyciel Ostrzyciel deleted the GH-92/add--version branch July 4, 2025 07:15
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

Successfully merging this pull request may close these issues.

Make --version work like "version"

2 participants