Commit 8dd17537 authored by Lukas Appelhans's avatar Lukas Appelhans

Quite some essentials, since we can't really get the position of the parsed...

Quite some essentials, since we can't really get the position of the parsed argument from kcmdlineargs
parent 9a3d4492
......@@ -94,6 +94,7 @@ int main(int argc, char** argv)
APM::OperationType type = APM::NoType;
QMultiHash<APM::Operation, QString> opts;
///NOTE: The actual order the arguments get checked is later transferred into when they are going to be done
if (args->isSet("D")) {
type = APM::DatabaseOperationType;
} else if (args->isSet("Q")) {
......@@ -140,6 +141,10 @@ int main(int argc, char** argv)
list.append(APM::Unneeded);
} else if (args->isSet("S")) {
type = APM::SyncOperationType;
if (args->isSet("y"))
list.append(APM::UpdateDatabases);
if (args->isSet("u"))
list.append(APM::UpdateSystem);
if (args->isSet("asdeps"))
list.append(APM::AsDeps);
if (args->isSet("asexplicit"))
......@@ -164,10 +169,6 @@ int main(int argc, char** argv)
list.append(APM::DownloadOnly);
if (args->isSet("needed"))
list.append(APM::OnlyNeeded);
if (args->isSet("y"))
list.append(APM::UpdateDatabases);
if (args->isSet("u"))
list.append(APM::UpdateSystem);
QStringList ignore = args->getOptionList("ignore");
if (!ignore.isEmpty()) {
foreach (const QString &ign, ignore)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment