Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.12.2
-
None
-
-
90c86d738e0f36eaa48c7f81f6f5cc035a339d6b (qt/qtbase/dev)
Description
This won't be parsed
// Some comments here QCommandLineOption hostNameOption(QStringList() << "h" << "hostname", "HTTP Server hostname.", "Hostname", "127.0.0.1"); parser.addOption(hostNameOption);
if previously was selected
parser.addHelpOption();
Possibly, short name "h" intersects with help option. If help option would be added after hostNameOption, only first (hostname) option with "h" short name would be accepted.
Maybe it's not a bug, but simply confusing bahaviour.
Attachments
For Gerrit Dashboard: QTBUG-74907 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
258106,2 | QCommandLineParser: warn if defining a duplicate option | dev | qt/qtbase | Status: MERGED | +2 | 0 |