[sword-svn] r146 - trunk/flashtools

scribe at www.crosswire.org scribe at www.crosswire.org
Wed Oct 22 12:32:04 MST 2008


Author: scribe
Date: 2008-10-22 12:32:03 -0700 (Wed, 22 Oct 2008)
New Revision: 146

Modified:
   trunk/flashtools/flash.cpp
Log:
added more -? choices


Modified: trunk/flashtools/flash.cpp
===================================================================
--- trunk/flashtools/flash.cpp	2008-09-28 21:53:32 UTC (rev 145)
+++ trunk/flashtools/flash.cpp	2008-10-22 19:32:03 UTC (rev 146)
@@ -21,6 +21,7 @@
  */
 
 #include <map>
+#include <algorithm>
 #include <vector>
 #include <iostream>
 #include <sstream>
@@ -493,7 +494,10 @@
 			if (i+1 < argc) outDir = argv[++i];
 			else usage(*argv, "-o requires <outputDir>");
 		}
-		else if (!strcmp(argv[i], "-h")) {
+		else if ((!strcmp(argv[i], "-h"))
+			 || (!strcmp(argv[i], "-?"))
+			 || (!strcmp(argv[i], "--help"))
+										) {
 			usage(*argv);
 		}
 		else usage(*argv, (((SWBuf)"Unknown argument: ")+ argv[i]).c_str());




More information about the sword-cvs mailing list