You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devicemap.apache.org by wk...@apache.org on 2014/07/29 23:01:32 UTC

svn commit: r1614486 - /incubator/devicemap/trunk/examples/console/src/main/java/org/apache/devicemap/example/console/Example.java

Author: wkeil
Date: Tue Jul 29 21:01:32 2014
New Revision: 1614486

URL: http://svn.apache.org/r1614486
Log:
DMAP-54: Improve Console example 
added usage params similar to client main
Task-Url: https://issues.apache.org/jira/browse/DMAP-54

Modified:
    incubator/devicemap/trunk/examples/console/src/main/java/org/apache/devicemap/example/console/Example.java

Modified: incubator/devicemap/trunk/examples/console/src/main/java/org/apache/devicemap/example/console/Example.java
URL: http://svn.apache.org/viewvc/incubator/devicemap/trunk/examples/console/src/main/java/org/apache/devicemap/example/console/Example.java?rev=1614486&r1=1614485&r2=1614486&view=diff
==============================================================================
--- incubator/devicemap/trunk/examples/console/src/main/java/org/apache/devicemap/example/console/Example.java (original)
+++ incubator/devicemap/trunk/examples/console/src/main/java/org/apache/devicemap/example/console/Example.java Tue Jul 29 21:01:32 2014
@@ -44,7 +44,7 @@ public class Example {
         	test = args[0];
         }
         if (test!= null && test.length()>0) {
-        	if ("--usage".equals(test)) {
+        	if ("--usage".equals(test) || "-h".equals(test) || "--h".equals(test)) {
         		System.out.println("=== USAGE ===");
         		System.out.println("ua=\"<User Agent>\"");
         		System.out.println("");