Parse args for HopRun's internal option system-properties
@@ -169,6 +169,13 @@ public class HopRun implements Runnable, IHasHopMetadataProvider {
}
}
+ private void prepareInternalOptions(CommandLine cmd, String[] args) {
+ String[] helpArgs = new String[args.length + 1];
+ System.arraycopy(args, 0, helpArgs, 0, args.length);
+ helpArgs[args.length] = "-h";
+ cmd.parseArgs(helpArgs);
+ }
+
private void buildVariableSpace() throws IOException {
// Also grabs the system properties from hop.config.
//
@@ -726,6 +733,9 @@ public class HopRun implements Runnable, IHasHopMetadataProvider {
//
CommandLine cmd = new CommandLine(hopRun);
+ if (args.length > 0){
+ hopRun.prepareInternalOptions(cmd, args);
+ }
// Apply the system properties to the JVM
//
hopRun.applySystemProperties();
