From 8f0609ee78c1ecc180326b522a0bc5ba3e2360b1 Mon Sep 17 00:00:00 2001 From: Oliver Wolff Date: Wed, 22 Feb 2023 09:11:34 +0100 Subject: idc: Sync usage info with actual parameter parsing Pick-to: 6.5 Change-Id: I58f444023e955dae4cb93b8265481a231bd40bf0 Reviewed-by: Karsten Heimrich --- src/tools/idc/main.cpp | 6 ++++-- 1 file 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 Specify the interface version.\n" " /idl, -idl 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")) { -- cgit v1.2.1