diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-11-20T17·07+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-11-20T17·07+0100 |
commit | 1ff01187e230ddab210b173335e82f286626b16e (patch) | |
tree | 335e53209e6750f77586b58ec12e31a04bb6ddbe | |
parent | 4eb9e20028c4e52c23ce6a53fe02cac87171fda6 (diff) |
nix run: Fix "flag '--command' requires 2 argument(s)"
-rw-r--r-- | src/nix/run.cc | 2 |
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; |