-
Notifications
You must be signed in to change notification settings - Fork 443
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
How to customize launcher script's -h
output to include my application's own options?
#831
Comments
-h
output to include my application's own options?-h
output to include my application's own options?
Thanks for your feature request, but I think this feature is out of scope for native packager. The command line options are for the start script alone. I can't see the advantage in defining your cli options in the bash script and in your application. If you use scopt or finagle flags you will get parsing, validating and help messages all in one. |
That's precisely it: if the users pass |
I definitely wouldn't want to define the options in two places. |
So a more helpful |
Yes. One approach I thought of is to have an SBT setting telling |
Yeah, that would be possible, but can get tricky.
I'm not saying this is not possible, nor not useful. My main concern is making the bash-script more complex that it already is. If the "usage printing logic" can be optionally plugged in, then this would be nice, but I fear this is not simple possible either. |
I would expect this to be a common requirement, but couldn't find it in http://www.scala-sbt.org/sbt-native-packager/archetypes/java_app/index.html.
The text was updated successfully, but these errors were encountered: