forked from lix-project/lix
Fix --attr parsing
This commit is contained in:
parent
632f989b51
commit
02843ba4cb
|
@ -1402,7 +1402,9 @@ int main(int argc, char * * argv)
|
||||||
repair = true;
|
repair = true;
|
||||||
else if (*arg != "" && arg->at(0) == '-') {
|
else if (*arg != "" && arg->at(0) == '-') {
|
||||||
opFlags.push_back(*arg);
|
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));
|
opFlags.push_back(getArg(*arg, arg, end));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue