summaryrefslogtreecommitdiffstats
path: root/flashtools/flash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'flashtools/flash.cpp')
-rw-r--r--flashtools/flash.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/flashtools/flash.cpp b/flashtools/flash.cpp
index 6f2a578..2ee86b9 100644
--- a/flashtools/flash.cpp
+++ b/flashtools/flash.cpp
@@ -21,6 +21,7 @@
*/
#include <map>
+#include <algorithm>
#include <vector>
#include <iostream>
#include <sstream>
@@ -493,7 +494,10 @@ int main(int argc, char **argv) {
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());