-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
Add version flag #121
Add version flag #121
Conversation
schnapster
commented
Jun 25, 2018
- Add CLI flag to print version information and exit
- Print more version information on start
- Print banner and version info into the log, not just standard out
- Log errors more reliably during spring application start
|| args[0].equalsIgnoreCase("--version"))) { | ||
System.out.println("Version flag detected. Printing version info, then exiting."); | ||
System.out.println(getVersionInfo()); | ||
System.out.println("Version info printed, exiting."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two other prints seem unnecessary, especially since having two makes them redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are using the version flag, you should expect this to exit as it is common practice. I don't see a case where this would actually be useful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nvm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brain was afk there ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've all been there 😛
- Add CLI flag to print version information and exit - Print more version information on start - Print banner and version info into the log, not just standard out - Log errors more reliably during spring application start
ff3d3a5
to
db91063
Compare
- Add CLI flag to print version information and exit - Print more version information on start - Print banner and version info into the log, not just standard out - Log errors more reliably during spring application start