Fix --attr parsing

This commit is contained in:
Eelco Dolstra 2014-08-18 15:48:23 +02:00
parent 632f989b51
commit 02843ba4cb

View file

@ -1402,7 +1402,9 @@ int main(int argc, char * * argv)
repair = true;
else if (*arg != "" && arg->at(0) == '-') {
opFlags.push_back(*arg);
if (*arg == "--from-profile" || *arg == "--atr" || *arg == "-A") /* !!! hack */
/* FIXME: hacky */
if (*arg == "--from-profile" ||
(op == opQuery && (*arg == "--attr" || *arg == "-A")))
opFlags.push_back(getArg(*arg, arg, end));
}
else