diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-05-01 19:15:18 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-05-01 19:15:18 +0200 |
commit | fcff0b671bab64dccc79f24a2818059b72cb577b (patch) | |
tree | c6266cbcd02494918f6ddbd519716737939c7e68 /src/main/TweetShell.java | |
parent | cbe28dea85f5054fb9f44928877196bba9d35ebc (diff) | |
download | TwitterDataAnalytics-fcff0b671bab64dccc79f24a2818059b72cb577b.tar.gz |
Prettify prompt, fix target param
Diffstat (limited to 'src/main/TweetShell.java')
-rw-r--r-- | src/main/TweetShell.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/TweetShell.java b/src/main/TweetShell.java index 0dc4153..e1bf5b3 100644 --- a/src/main/TweetShell.java +++ b/src/main/TweetShell.java @@ -85,9 +85,14 @@ public class TweetShell implements TwitterApi.PinSupplier { private void printPrompt() { if (stream_cached == null) { + // "dollars are worthless" System.out.print("$ "); - } else { + } else if (stream_cached.isValid()) { + // "we make money now by receiving tweets" System.out.print("€ "); + } else { + // "we previously made money, but not anymore" + System.out.print("ƒ "); } } @@ -148,7 +153,7 @@ public class TweetShell implements TwitterApi.PinSupplier { close("Close the stream"), exit("Returns to shell"), help("Get help"), - target("Set output target: {file, shell}."); + target("Set output target: {file, shell}.", 1); private final String description; private final int paramCount; |