Forward '--help' command in Python wraper for JVM scripts.
'java_binary' GN template when building JVM app generates Python wrapper script in 'bin' dir. This wrapper script forwards all unknown args (if '--jar-args' argument is omitted) to the underlying JVM binary. But it doesn't do that for '--help' command replacing it with standard Python 'argparse' autogenerated help. Current users of 'java_binary' template ('errorprone_plugin', 'bytecode_processor', 'hello_world') have no '--help' command and OK with that. But targets in some external projects have it and not OK. Bug: 1146355 Change-Id: Id737118c519747b216b676d61626f40e4dac9650 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2578901 Commit-Queue: Peter Wen <wnwen@chromium.org> Reviewed-by:Peter Wen <wnwen@chromium.org> Cr-Commit-Position: refs/heads/master@{#834781}
Showing
Please register or sign in to comment