java.lang.Object
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 enumQCommandLineParser::OptionsAfterPositionalArgumentsMode
static enum
Java wrapper for Qt enumQCommandLineParser::SingleDashWordOptionMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal QCommandLineOption
final boolean
addOption
(QCommandLineOption commandLineOption) final boolean
addOptions
(Collection<? extends QCommandLineOption> options) final void
addPositionalArgument
(String name, String description) Overloaded function foraddPositionalArgument(java.lang.String, java.lang.String, java.lang.String)
withsyntax = (String)null
.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()
-
-
Method Details
-
addHelpOption
-
addOption
-
addOptions
-
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
-
showVersion
-
unknownOptionNames
-
value
-
value
-
values
-
values
-
addPositionalArgument
Overloaded function for
addPositionalArgument(java.lang.String, java.lang.String, java.lang.String)
withsyntax = (String)null
. -
showHelp
Overloaded function for
showHelp(int)
withexitCode = 0
.
-