summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-05-01 19:15:18 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-05-01 19:15:18 +0200
commitfcff0b671bab64dccc79f24a2818059b72cb577b (patch)
treec6266cbcd02494918f6ddbd519716737939c7e68
parentcbe28dea85f5054fb9f44928877196bba9d35ebc (diff)
downloadTwitterDataAnalytics-fcff0b671bab64dccc79f24a2818059b72cb577b.tar.gz
Prettify prompt, fix target param
-rw-r--r--src/main/TweetShell.java9
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;