aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/messages.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-09-14 13:48:05 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-09-20 14:55:46 +0200
commitee220f2cd53b26060b12e90fffac39efb019f064 (patch)
tree38ba95fbb34c7bbae55225e0d0cf9a4cd0110d5b /sources/shiboken6/ApiExtractor/messages.cpp
parent95314e809969bf38714a7b63651ce877621618d8 (diff)
shiboken6: Add an options parser for common options
Remove the old option handling completely. Pick-to: 6.6 Change-Id: I00661b530527cd072c346b983c33b789240ce722 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/messages.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp
index c3ad3d5c1..e63934512 100644
--- a/sources/shiboken6/ApiExtractor/messages.cpp
+++ b/sources/shiboken6/ApiExtractor/messages.cpp
@@ -684,18 +684,12 @@ QString msgMethodNotFound(const AbstractMetaClassCPtr &klass, const QString &nam
// main.cpp
-QString msgLeftOverArguments(const QVariantMap &remainingArgs, const QStringList &argV)
+QString msgLeftOverArguments(const QString &remainingArgs, const QStringList &argV)
{
QString message;
QTextStream str(&message);
- str << "shiboken: Called with wrong arguments:";
- for (auto it = remainingArgs.cbegin(), end = remainingArgs.cend(); it != end; ++it) {
- str << ' ' << it.key();
- const QString value = it.value().toString();
- if (!value.isEmpty())
- str << ' ' << value;
- }
- str << "\nCommand line: " << argV.join(u' ');
+ str << "shiboken: Unprocessed arguments: " << remainingArgs
+ << "\nCommand line: " << argV.join(u' ');
return message;
}