Skip to content
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

Merged
merged 1 commit into from
Jun 27, 2018
Merged

Add version flag #121

merged 1 commit into from
Jun 27, 2018

Conversation

schnapster
Copy link
Contributor

  • 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.");
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How?

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nvm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Brain was afk there ;)

Copy link
Member

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
@schnapster schnapster force-pushed the feature/version-flag branch from ff3d3a5 to db91063 Compare June 27, 2018 21:15
@freyacodes freyacodes merged commit 99f093d into dev Jun 27, 2018
@freyacodes freyacodes deleted the feature/version-flag branch June 27, 2018 21:20
freyacodes pushed a commit to freyacoded/repo-test that referenced this pull request Oct 11, 2022
- 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
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.

2 participants