Skip to content

Commit

Permalink
Fix --attr parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Aug 18, 2014
1 parent 632f989 commit 02843ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nix-env/nix-env.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02843ba

Please sign in to comment.