From 1ff01187e230ddab210b173335e82f286626b16e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 20 Nov 2017 18:07:58 +0100 Subject: [PATCH] nix run: Fix "flag '--command' requires 2 argument(s)" --- src/nix/run.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/run.cc b/src/nix/run.cc index 66f416efc..ade87e63a 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 ss) { if (ss.empty()) throw UsageError("--command requires at least one argument"); command = ss;