Github user mbalassi commented on a diff in the pull request:

    https://github.com/apache/flink/pull/519#discussion_r26939465
  
    --- Diff: 
flink-staging/flink-streaming/flink-streaming-examples/src/main/java/org/apache/flink/streaming/examples/twitter/TwitterStream.java
 ---
    @@ -176,11 +176,14 @@ private static boolean parseParameters(String[] args) 
{
                        // parse input arguments
                        fileOutput = true;
                        if (args.length == 2) {
    +                           fileInput = true;
                                textPath = args[0];
                                outputPath = args[1];
    +                   } else if (args.length == 1) {
    +                           outputPath = args[0];
                        } else {
                                System.err.println("USAGE:\nTwitterStream 
<pathToPropertiesFile> <result path>");
    -                           return false;
    +                           return true;
                        }
    --- End diff --
    
    Why return true here? This way this function always returns true.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to