diff options
author | Troy A. Griffitts <scribe@crosswire.org> | 2008-10-22 19:32:03 +0000 |
---|---|---|
committer | Troy A. Griffitts <scribe@crosswire.org> | 2008-10-22 19:32:03 +0000 |
commit | f67617f7bbd1b475ce1a26b60f9012c6c33c92d5 (patch) | |
tree | de8593d646edf2708d2606f67e2a64f36b065254 /flashtools/flash.cpp | |
parent | 6d057ded23a6693af3d58f792bb6f7c093f8d82b (diff) | |
download | sword-tools-f67617f7bbd1b475ce1a26b60f9012c6c33c92d5.tar.gz |
added more -? choices
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@146 07627401-56e2-0310-80f4-f8cd0041bdcd
Diffstat (limited to 'flashtools/flash.cpp')
-rw-r--r-- | flashtools/flash.cpp | 6 |
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()); |