diff options
Diffstat (limited to 'sca-java-2.x')
-rw-r--r-- | sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java | 7 |
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) {
|