about summary refs log tree commit diff
path: root/src/nix-instantiate/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-instantiate/main.cc')
-rw-r--r--src/nix-instantiate/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-instantiate/main.cc b/src/nix-instantiate/main.cc
index 7668958fca17..d73d0e613f72 100644
--- a/src/nix-instantiate/main.cc
+++ b/src/nix-instantiate/main.cc
@@ -84,7 +84,7 @@ void run(Strings args)
                 throw UsageError("`--add-root requires an argument");
             gcRoot = absPath(*i++);
         }
-        else if (arg == "--attr") {
+        else if (arg == "--attr" || arg == "-A") {
             if (i == args.end())
                 throw UsageError("`--attr requires an argument");
             attrPath = *i++;