How to remove "--help-all" option from the command line help text.
-
Hello,
I am working on an command line application that uses QCommandLineParser. I use QCommandLineParser::addHelpOption() to make the parser automatically generate a help text that will be returned as a response when -h option is used. Everything works great except for the additional --help-all that is added by addHelpOption() and that I don't want to have here. Also if I run the application with that option (--help-all) it adds "--qmljsdebugger <value>" to the help text, which is an option that I don't want the user to see or know about.
The application is built in release not debug mode.Does anyone know how to remove --help-all and --qmljsebugger from the parser?
-
Instead of using the convenience QCommandLineParser::addHelpOption(), you can also manually add an option for '-h'/ '--help' / '-?' arguments. If this option is set, you then call QCommandLineParser::showHelp().