From 771420398f74911f8bbf864f138704a0e99c863a Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Mon, 12 May 2014 11:01:49 +0200 Subject: Print helpful message --- src/main/Main.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/Main.java b/src/main/Main.java index 1f45fe9..e7fc372 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -136,7 +136,8 @@ public class Main implements Callable { } public int getProcessedTweets() { - return tweetNo; + // tweetNo is the tweet number of the tweet that is being processed. + return Math.min(0, tweetNo - 1); } @Override @@ -145,6 +146,8 @@ public class Main implements Callable { boolean success = false; try { if (m_filename == null) { + System.err.println("Reading lines of tweets from standard input!"); + System.err.println("If you want to read tweets, run with a given file."); reader = new TweetReader(System.in); } else if (m_filename.endsWith(".gz")) { reader = new CompressedTweetReader(m_filename); -- cgit v1.2.1