2006/unicorn/org/w3c/unicorn/tests UnicornClient.java,1.9,1.10

Update of /sources/public/2006/unicorn/org/w3c/unicorn/tests
In directory hutz:/tmp/cvs-serv9164/org/w3c/unicorn/tests

Modified Files:
	UnicornClient.java 
Log Message:
Now UnicornClient also prints help when it's called with no parameter.

Index: UnicornClient.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/tests/UnicornClient.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- UnicornClient.java	19 Jun 2008 12:50:54 -0000	1.9
+++ UnicornClient.java	19 Jun 2008 14:43:05 -0000	1.10
@@ -45,9 +45,9 @@
 	public static void main(String[] args) {
 		UnicornCall aUnicornCall = new UnicornCall();
 		
-		if(args.length==1){
-			if(args[0].equals("help"))print_help();
-		}
+
+		if(args.length==0) print_help();
+		else if(args.length==1 && args[0].equals("help"))print_help();
 		else{
 		// read parameters
 		String task = args[0];

Received on Thursday, 19 June 2008 14:43:43 UTC