dianfu commented on a change in pull request #11702: 
[FLINK-16667][python][client] Support new Python dependency configuration 
options in flink-client.
URL: https://github.com/apache/flink/pull/11702#discussion_r407976480
 
 

 ##########
 File path: 
flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontend.java
 ##########
 @@ -240,17 +235,15 @@ protected void info(String[] args) throws Exception {
 
                final CommandLine commandLine = 
CliFrontendParser.parse(commandOptions, args, true);
 
-               final ProgramOptions programOptions = new 
ProgramOptions(commandLine);
+               final ProgramOptions programOptions = 
ProgramOptions.create(commandLine);
 
                // evaluate help flag
                if (commandLine.hasOption(HELP_OPTION.getOpt())) {
                        CliFrontendParser.printHelpForInfo();
                        return;
                }
 
-               if (programOptions.getJarFilePath() == null) {
-                       throw new CliArgsException("The program JAR file was 
not specified.");
-               }
+               programOptions.validate();
 
 Review comment:
   ditto

----------------------------------------------------------------
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