summaryrefslogtreecommitdiff
path: root/src/main/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/Main.java')
-rw-r--r--src/main/Main.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/Main.java b/src/main/Main.java
index 05429fb..f7a9203 100644
--- a/src/main/Main.java
+++ b/src/main/Main.java
@@ -87,6 +87,7 @@ public class Main {
user,
tweet,
searchtweets,
+ shell,
hack,
help;
@@ -164,6 +165,14 @@ public class Main {
System.out.println(" " + cmd.name());
}
break;
+ case shell:
+ TweetShell shell = new TweetShell();
+ // pass any remaining parameters to the shell
+ if (params.length > 0) {
+ shell.execute(params);
+ }
+ shell.process_forever();
+ break;
default:
throw new AssertionError(command.name());
}