Skip to content

CLI parameter --version to show version #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bnichell opened this issue Jul 10, 2024 · 3 comments
Closed

CLI parameter --version to show version #339

bnichell opened this issue Jul 10, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@bnichell
Copy link

bnichell commented Jul 10, 2024

It could be helpful to add a CLI parameter, which logs the ABAP cleaner version to stdout.
This could be interesting for instance in CI, when it needs to be confirmed that the existing ABAP cleaner has the required version.
The parameter could be provided as --version and -v

@bnichell bnichell changed the title CLI parameter to show version CLI parameter --version to show version Jul 10, 2024
@jmgrassau jmgrassau added the enhancement New feature or request label Sep 19, 2024
@jmgrassau jmgrassau self-assigned this Dec 12, 2024
@jmgrassau
Copy link
Member

Hi Benedikt,

thanks for the idea, I now enhanced it accordingly! An example would be

> .\abap-cleanerc.exe --version
ABAP cleaner 1.20.2.202412121537

We currently only have words as parameters, so I hope --version is fine without the short form -v?

Kind regards,
Jörg-Michael

@bnichell
Copy link
Author

Sure, that is great.
Thank you very much!

jmgrassau added a commit to jmgrassau/abap-cleaner that referenced this issue Dec 16, 2024
@jmgrassau
Copy link
Member

Hi Benedikt,

thanks for the idea! This parameter should now be available with version 1.21.0, which was just released!

Kind regards,
Jörg-Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants