about summary refs log tree commit diff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-11-20T17·07+0100
committerEelco Dolstra <edolstra@gmail.com>2017-11-20T17·07+0100
commit1ff01187e230ddab210b173335e82f286626b16e (patch)
tree335e53209e6750f77586b58ec12e31a04bb6ddbe /src/nix
parent4eb9e20028c4e52c23ce6a53fe02cac87171fda6 (diff)
nix run: Fix "flag '--command' requires 2 argument(s)"
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/run.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/run.cc b/src/nix/run.cc
index 66f416efcec1..ade87e63a49c 100644
--- a/src/nix/run.cc
+++ b/src/nix/run.cc
@@ -30,8 +30,8 @@ struct CmdRun : InstallablesCommand
             .longName("command")
             .shortName('c')
             .description("command and arguments to be executed; defaults to 'bash'")
-            .arity(ArityAny)
             .labels({"command", "args"})
+            .arity(ArityAny)
             .handler([&](std::vector<std::string> ss) {
                 if (ss.empty()) throw UsageError("--command requires at least one argument");
                 command = ss;