aboutsummaryrefslogtreecommitdiff
path: root/src/ui/qmmpstarter.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-01-05 17:00:02 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-01-05 17:00:02 +0000
commit38ba9babb485a491c62a9ebd7a88e9253fccb839 (patch)
treeb8ed85c959cf340c51ecf36440db2aacef14eef7 /src/ui/qmmpstarter.cpp
parent5810abb583017f18cd9cdb5b887c7ebf17c5cc6d (diff)
downloadqmmp-38ba9babb485a491c62a9ebd7a88e9253fccb839.tar.gz
qmmp-38ba9babb485a491c62a9ebd7a88e9253fccb839.tar.bz2
qmmp-38ba9babb485a491c62a9ebd7a88e9253fccb839.zip
short command line keys
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@735 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/qmmpstarter.cpp')
-rw-r--r--src/ui/qmmpstarter.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/qmmpstarter.cpp b/src/ui/qmmpstarter.cpp
index aceae205f..6dd467344 100644
--- a/src/ui/qmmpstarter.cpp
+++ b/src/ui/qmmpstarter.cpp
@@ -57,10 +57,11 @@ QMMPStarter::QMMPStarter(int argc,char **argv, QObject* parent) : QObject(parent
exit(0);
}
- if (argString.startsWith("--") && // command?
+ if (argString.startsWith("-") && // command?
!(m_option_manager->identify(argString) ||
CommandLineManager::hasOption(argString) ||
- argString.startsWith("--enqueue")))
+ argString.startsWith("--enqueue") ||
+ argString.startsWith("-e")))
{
qFatal("QMMP: Unknown command...");
exit(1);
@@ -141,8 +142,8 @@ void QMMPStarter::printUsage()
cout << qPrintable(tr("Usage: qmmp [options] [files]")) << endl;
cout << qPrintable(tr("Options:")) << endl;
cout << "--------" << endl;
+ cout << "-e, --enqueue " << qPrintable(tr("Don't clear the playlist")) << 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;