summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-02-09 09:51:17 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-02-09 09:51:17 +0000
commitd2c49758af153d02fc6df5d28f5125737cdce402 (patch)
tree732d15f7b61a3679fc16365708503fc0e982aaa4 /sca-java-2.x/trunk/modules
parentc2e63d9598ed157497ccd167f76b6ee3369e7bd0 (diff)
Add a -help arg so the help can be shown at startup
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1068815 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r--sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java
index 8353c9eb84..29d30f2acf 100644
--- a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java
+++ b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java
@@ -74,10 +74,13 @@ public class Shell {
boolean useJline = true;
String domainURI = "default";
+ boolean showHelp = false;
String contribution = null;
for (String s : args) {
if ("-nojline".equals(s)) {
useJline = false;
+ } else if ("-help".equals(s)) {
+ showHelp = true;
} else {
if (s.startsWith("uri:") || s.startsWith("properties:")) {
domainURI = s;
@@ -90,7 +93,9 @@ public class Shell {
if (contribution != null) {
shell.install(Arrays.asList(new String[]{"install", contribution, "-start"}));
}
- shell.run(contribution==null);
+
+
+ shell.run(showHelp || contribution==null);
}
public Shell(String domainURI, boolean useJLine) {