[cairo-commit] cairo-java/test/kapow Kapow.java,1.7,1.8

Jeffrey Morgan commit at pdx.freedesktop.org
Tue Mar 15 05:26:41 PST 2005


Committed by: kuzman

Update of /cvs/cairo/cairo-java/test/kapow
In directory gabe:/tmp/cvs-serv26857/test/kapow

Modified Files:
	Kapow.java 
Log Message:
added default text to the example

Index: Kapow.java
===================================================================
RCS file: /cvs/cairo/cairo-java/test/kapow/Kapow.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- Kapow.java	14 Mar 2005 20:17:44 -0000	1.7
+++ Kapow.java	15 Mar 2005 13:26:39 -0000	1.8
@@ -129,16 +129,11 @@
         cr.getPathFlat(path);
 	}
 
-	private static void usage(){
-		System.out.println("USAGE: java kapow.Kapow <text>");
-		System.out.println("You must specify the text to print.");
-		System.exit(1);
-	}
-	
 	public static void main(String[] args) throws Exception {
-		if (args.length != 1)
-			usage();
-		new Kapow(args[0]);
+        String text = "Kapow";
+		if (args.length == 1)
+			text = args[0];
+		new Kapow(text);
 	}
     
     private class MyPath implements CurrentPath {




More information about the cairo-commit mailing list