QDoc: Use double-dash for long command-line options in docs
The QDoc manual and source code comments use single-dash forms
like -outputdir and -indexdir, but QDoc's --help output shows the
canonical double-dash form for long options. Both styles work
because QCommandLineParser is configured with ParseAsLongOptions,
but the documentation should match the canonical form that users
see when they ask for help.
Fixes: QTBUG-95813
Change-Id: I9ca523ce1807b47e349d1dd01286a76761dc44e9
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
| commit | f8efa11e9119a730fbe7fcf0dc54e43ccb7f2af6 |
| parent | 4303716f7c2110c7c879166ab894308a2ea6bef3 |
| author | Paul Wicking <paul.wicking@qt.io> |
| committer | Paul Wicking <paul.wicking@qt.io> |
| commit time | Tue, 24 Mar 2026 17:52:14 +0100 |
- M src/qdoc/examples/themes/qt-branded/demo-qtlottie.qdocconf
- M src/qdoc/qdoc/doc/qdoc-manual-qdocconf.qdoc
- M src/qdoc/qdoc/doc/qdoc-warnings.qdoc
- M src/qdoc/qdoc/doc/qtgui-qdocconf.qdoc
- M src/qdoc/qdoc/src/qdoc/config.cpp
- M src/qdoc/qdoc/src/qdoc/qdoccommandlineparser.cpp
- M src/qdoc/qdoc/src/qdoc/qdocdatabase.cpp
- M src/qdoc/qdoc/src/qdoc/qdocindexfiles.cpp
- M src/qdoc/qdoc/tests/generatedoutput/testdata/indexlinking/indexlinking.qdocconf
- M src/qdoc/qdoc/tests/generatedoutput/testdata/testcpp/testcpp.qdocconf
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/bug80259/bug80259.qdocconf
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/globalfunc/globalfunc.qdocconf
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/illformatted_documentation/illformatted_documentation.qdocconf
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/non_ascii_character_input/non_ascii_character_input.qdocconf
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/sa_multiline_link/sa_multiline_link.qdocconf
- M src/qdoc/qdoc/tests/validateqdocoutputfiles/testdata/usingdirective/usingdirective.qdocconf