diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-05-02 23:38:34 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-05-02 23:38:34 +0200 |
commit | 4bd53349774beecbf235f1589a3d9168b04a17f5 (patch) | |
tree | 39fe8e54446dc6e1579455c36d2c8ce50263cd91 /src/main/Main.java | |
parent | 36fdc062cafa69b1ebf2e48e27b6103919464d3b (diff) | |
download | TwitterDataAnalytics-4bd53349774beecbf235f1589a3d9168b04a17f5.tar.gz |
Accept multiple commands (for automation)
Instead of `./run.sh shell target +file`, and then manually running
add and commit, you can now use:
./run.sh shell 'target +file' 'add samsung' commit
Quoting is necessary because of the spaces.
Diffstat (limited to 'src/main/Main.java')
-rw-r--r-- | src/main/Main.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/Main.java b/src/main/Main.java index b782d89..4b02223 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -173,7 +173,9 @@ public class Main { TweetShell shell = new TweetShell(); // pass any remaining parameters to the shell if (params.length > 0) { - shell.execute(params); + for (String cmd : params) { + shell.execute(cmd); + } } shell.process_forever(); break; |