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

print usage: print options before arguments, add optional prefix #138

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thomas-mc-work
Copy link
Contributor

  • it's common to print the cli arguments after the options (on some OS it's even mandatory to adhere to this rule)
  • I added an optional parameter to the printSingleLineUsage method to add a custom prefix to the output. This is a convenient shortcut to precede with the invocation of the program itself, e.g. java -jar my-app.jar ...

@thomas-mc-work
Copy link
Contributor Author

ping @kohsuke

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.

1 participant