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
- Since:
- This class was introduced in Qt 5.2.
-
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
- Returns:
-
addOption
- Parameters:
commandLineOption
-- Returns:
-
addOptions
- Parameters:
options
-- Returns:
- Since:
- This function was introduced in Qt 5.4.
-
addPositionalArgument
@QtUninvokable public final void addPositionalArgument(String name, String description, String syntax) - Parameters:
name
-description
-syntax
-
-
addVersionOption
- Returns:
-
applicationDescription
- Returns:
-
clearPositionalArguments
-
errorText
- Returns:
-
helpText
- Returns:
-
isSet
- Parameters:
option
-- Returns:
-
isSet
- Parameters:
name
-- Returns:
-
optionNames
- Returns:
-
parse
- Parameters:
arguments
-- Returns:
-
positionalArguments
- Returns:
-
process
- Parameters:
app
-
-
process
- Parameters:
arguments
-
-
setApplicationDescription
- Parameters:
description
-
-
setOptionsAfterPositionalArgumentsMode
@QtUninvokable public final void setOptionsAfterPositionalArgumentsMode(QCommandLineParser.OptionsAfterPositionalArgumentsMode mode) - Parameters:
mode
-- Since:
- This function was introduced in Qt 5.6.
-
setSingleDashWordOptionMode
@QtUninvokable public final void setSingleDashWordOptionMode(QCommandLineParser.SingleDashWordOptionMode parsingMode) - Parameters:
parsingMode
-
-
showHelp
- Parameters:
exitCode
-
-
showVersion
- Since:
- This function was introduced in Qt 5.4.
-
unknownOptionNames
- Returns:
-
value
- Parameters:
option
-- Returns:
-
value
- Parameters:
name
-- Returns:
-
values
- Parameters:
option
-- Returns:
-
values
- Parameters:
name
-- Returns:
-
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
.
-