HuangXingBo commented on a change in pull request #8671: [FLINK-12787][python] 
Allow to specify directory in option -pyfs
URL: https://github.com/apache/flink/pull/8671#discussion_r291886091
 
 

 ##########
 File path: 
flink-clients/src/main/java/org/apache/flink/client/cli/ProgramOptions.java
 ##########
 @@ -119,9 +119,9 @@ protected ProgramOptions(CommandLine line) throws 
CliArgsException {
                        // PythonDriver args: pym ${py-module} pyfs ${py-files} 
[optional] ${other args}.
                        // e.g. -pym AAA.fun -pyfs AAA.zip(CLI cmd) ----> pym 
AAA.fun -pyfs AAA.zip(PythonDriver args)
                        String[] newArgs = new String[args.length + 4];
-                       newArgs[0] = PYMODULE_OPTION.getOpt();
+                       newArgs[0] = "-" + PYMODULE_OPTION.getOpt();
                        newArgs[1] = 
line.getOptionValue(PYMODULE_OPTION.getOpt());
-                       newArgs[2] = PYFILES_OPTION.getOpt();
+                       newArgs[2] = "-" + PYFILES_OPTION.getOpt();
 
 Review comment:
   The transform note will be changed together or the note can be delete

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to