diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2023-02-22 09:11:34 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-03-01 12:47:07 +0000 |
commit | da025dc3faa3dc048cbe75dbbe00f2fc6fb17d8b (patch) | |
tree | a4323eb5a3bd06001735e26ff72ea77dad3a5efc | |
parent | 03e2f16525aa49ce625a4ff658365179566e3382 (diff) | |
download | qtactiveqt-da025dc3faa3dc048cbe75dbbe00f2fc6fb17d8b.tar.gz |
idc: Sync usage info with actual parameter parsing
Change-Id: I58f444023e955dae4cb93b8265481a231bd40bf0
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
(cherry picked from commit 8f0609ee78c1ecc180326b522a0bc5ba3e2360b1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/tools/idc/main.cpp | 6 |
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")) { |