java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QCommandLineParser
- All Implemented Interfaces:
QtObjectInterface
Means for handling the command line options
Java wrapper for Qt class QCommandLineParser
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QCommandLineParser::OptionsAfterPositionalArgumentsModestatic enum
Java wrapper for Qt enum QCommandLineParser::SingleDashWordOptionModeNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QCommandLineOption
final boolean
addOption
(QCommandLineOption commandLineOption) final boolean
addOptions
(Collection<QCommandLineOption> options) final void
addPositionalArgument
(String name, String description) Overloaded function foraddPositionalArgument(java.lang.String, java.lang.String, java.lang.String)
withsyntax = ""
.final void
addPositionalArgument
(String name, String description, String syntax) final QCommandLineOption
final String
final void
final String
final String
helpText()
final boolean
isSet
(QCommandLineOption option) final boolean
final QStringList
final boolean
parse
(Collection<String> arguments) final QStringList
final void
process
(QCoreApplication app) final void
process
(Collection<String> arguments) final void
setApplicationDescription
(String description) final void
final void
final void
showHelp()
Overloaded function forshowHelp(int)
withexitCode = 0
.final void
showHelp
(int exitCode) final void
final QStringList
final String
value
(QCommandLineOption option) final String
final QStringList
values
(QCommandLineOption option) final QStringList
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QCommandLineParser
public QCommandLineParser() -
QCommandLineParser
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
addHelpOption
-
addOption
-
addOptions
-
addPositionalArgument
Overloaded function for
addPositionalArgument(java.lang.String, java.lang.String, java.lang.String)
withsyntax = ""
. -
addPositionalArgument
@QtUninvokable public final void addPositionalArgument(String name, String description, String syntax) -
addVersionOption
-
applicationDescription
-
clearPositionalArguments
-
errorText
-
helpText
-
isSet
-
isSet
-
optionNames
-
parse
-
positionalArguments
-
process
-
process
-
setApplicationDescription
-
setOptionsAfterPositionalArgumentsMode
@QtUninvokable public final void setOptionsAfterPositionalArgumentsMode(QCommandLineParser.OptionsAfterPositionalArgumentsMode mode) -
setSingleDashWordOptionMode
@QtUninvokable public final void setSingleDashWordOptionMode(QCommandLineParser.SingleDashWordOptionMode parsingMode) -
showHelp
Overloaded function for
showHelp(int)
withexitCode = 0
. -
showHelp
-
showVersion
-
unknownOptionNames
-
value
-
value
-
values
-
values
-