summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2023-02-22 09:11:34 +0100
committerOliver Wolff <oliver.wolff@qt.io>2023-03-01 12:45:08 +0100
commit8f0609ee78c1ecc180326b522a0bc5ba3e2360b1 (patch)
treecb6c1e6337582ff4843fe2d57697b64f7b10153e
parentcacf9999d2ffdbeaab7ea46446608ab4593ae7e7 (diff)
downloadqtactiveqt-8f0609ee78c1ecc180326b522a0bc5ba3e2360b1.tar.gz
idc: Sync usage info with actual parameter parsing
Pick-to: 6.5 Change-Id: I58f444023e955dae4cb93b8265481a231bd40bf0 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r--src/tools/idc/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/idc/main.cpp b/src/tools/idc/main.cpp
index a1e0712..2cf3bd3 100644
--- a/src/tools/idc/main.cpp
+++ b/src/tools/idc/main.cpp
@@ -268,7 +268,7 @@ const char usage[] =
"Usage: idc [options] [input_file]\n"
"Interface Description Compiler " QT_VERSION_STR "\n\n"
"Options:\n"
-" -?, /h, -h, -help Displays this help.\n"
+" /?, -?, /h, -h, /help, -help Displays this help.\n"
" /v, -v Displays version information.\n"
" /version, -version <version> Specify the interface version.\n"
" /idl, -idl <file> Specify the interface definition file.\n"
@@ -322,7 +322,9 @@ int runIdc(int argc, char **argv)
} else if (p == QLatin1String("/v") || p == QLatin1String("-v")) {
fprintf(stdout, "Qt Interface Definition Compiler version 1.0 using Qt %s\n", QT_VERSION_STR);
return 0;
- } else if (p == QLatin1String("/h") || p == QLatin1String("-h") || p == QLatin1String("-?") || p == QLatin1String("/?")) {
+ } else if (p == QLatin1String("/h") || p == QLatin1String("-h")
+ || p == QLatin1String("/?") || p == QLatin1String("-?")
+ || p == QLatin1String("/help") || p == QLatin1String("-help")) {
fprintf(stdout, "%s\n", usage);
return 0;
} else if (p == QLatin1String("/regserver") || p == QLatin1String("-regserver")) {