MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / clearPositionalArguments

Method clearPositionalArguments

contrib/qcommandlineparser.cpp:364–367  ·  view source on GitHub ↗

! Clears the definitions of additional arguments from the help text. This is only needed for the special case of tools which support multiple commands with different options. Once the actual command has been identified, the options for this command can be defined, and the help text for the command can be adjusted accordingly. Example: \snippet code/src_corelib_tools_q

Source from the content-addressed store, hash-verified

362 \snippet code/src_corelib_tools_qcommandlineparser.cpp 3
363*/
364void QCommandLineParser::clearPositionalArguments()
365{
366 d->positionalArgumentDefinitions.clear();
367}
368
369/*!
370 Parses the command line \a arguments.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected