aboutsummaryrefslogtreecommitdiff
path: root/src/ui/qmmpstarter.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-12-11 19:31:49 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-12-11 19:31:49 +0000
commit9dc5748f6a3aebf2f4d12598f0ce238665e48238 (patch)
treef6dcf3567a006c19d832d990ebb31d9aa03d43e3 /src/ui/qmmpstarter.cpp
parent4602c4fda29f1455ed6693b6af421ec7c7f68eb8 (diff)
downloadqmmp-9dc5748f6a3aebf2f4d12598f0ce238665e48238.tar.gz
qmmp-9dc5748f6a3aebf2f4d12598f0ce238665e48238.tar.bz2
qmmp-9dc5748f6a3aebf2f4d12598f0ce238665e48238.zip
--enqueue command line option
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@676 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/qmmpstarter.cpp')
-rw-r--r--src/ui/qmmpstarter.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/qmmpstarter.cpp b/src/ui/qmmpstarter.cpp
index 286ce6765..2ecee9315 100644
--- a/src/ui/qmmpstarter.cpp
+++ b/src/ui/qmmpstarter.cpp
@@ -59,7 +59,8 @@ QMMPStarter::QMMPStarter(int argc,char **argv, QObject* parent) : QObject(parent
if (argString.startsWith("--") && // command?
!(m_option_manager->identify(argString) ||
- CommandLineManager::hasOption(argString)))
+ CommandLineManager::hasOption(argString) ||
+ argString.startsWith("--enqueue")))
{
qFatal("QMMP: Unknown command...");
exit(1);
@@ -141,6 +142,7 @@ void QMMPStarter::printUsage()
cout << qPrintable(tr("Options:")) << endl;
cout << "--------" << endl;
cout << qPrintable(m_option_manager->helpString()) << endl;
+ cout << "--enqueue " << qPrintable(tr("Don't clear the playlist")) << endl;
CommandLineManager::printUsage();
cout << "--help " << qPrintable(tr("Display this text and exit")) << endl;
cout << "--version " << qPrintable(tr("Print version number and exit")) << endl;
@@ -149,5 +151,6 @@ void QMMPStarter::printUsage()
void QMMPStarter::printVersion()
{
- cout << qPrintable(tr("QMMP version:")) << " " << QMMP_STR_VERSION << endl;
+ cout << qPrintable(tr("QMMP version:")) << " " << QMMP_STR_VERSION << endl;
+ cout << qPrintable(tr("Qt version:")) << " " << QT_VERSION_STR << endl;
}