diff options
author | David Faure <faure@kde.org> | 2013-08-24 11:15:19 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-24 21:33:39 +0200 |
commit | 404598b61366e681100893052fdb394702d3bcbf (patch) | |
tree | b8741268b3960d6f47fd9a562a362e6503cab75c /src/corelib/kernel/qcoreapplication.cpp | |
parent | 1411a6f1acfcbea3f31ac461c27cd3e1be87ee1c (diff) |
Long live QCommandLineParser!
The QCommandLineParser class provides a means for handling the command line options.
QCoreApplication provides the command-line arguments as a simple list of strings.
QCommandLineParser provides the ability to define a set of options, parse the
command-line arguments, and store which options have actually been used, as
well as option values.
Done-with: Laszlo Papp <lpapp@kde.org>
Change-Id: Ic7bebc10b3f8d8dd06ad0f4bb897c51d566e3b7c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qcoreapplication.cpp')
-rw-r--r-- | src/corelib/kernel/qcoreapplication.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index 3460b9e228..bba878d2eb 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -589,6 +589,8 @@ void QCoreApplicationPrivate::initLocale() Note that some arguments supplied by the user may have been processed and removed by QCoreApplication. + For more advanced command line option handling, create a QCommandLineParser. + \section1 Locale Settings On Unix/Linux Qt is configured to use the system locale settings by @@ -2060,7 +2062,7 @@ qint64 QCoreApplication::applicationPid() As a result of this, the string given by arguments().at(0) might not be the program name on Windows, depending on how the application was started. - \sa applicationFilePath() + \sa applicationFilePath(), QCommandLineParser */ QStringList QCoreApplication::arguments() |