aboutsummaryrefslogtreecommitdiff
path: root/src/nix/installables.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-05-12 11:53:32 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-05-12 11:53:32 +0200
commitb8b2dbf27204bc6ce5f57fa5fc5c76f9265fcee1 (patch)
tree30da27d14b03fe0ccc7ac355a04044d3be57396f /src/nix/installables.cc
parent437614b479dd30200dcdc1950f8d4fdddfef7a61 (diff)
Fix InstallableCommand
Diffstat (limited to 'src/nix/installables.cc')
-rw-r--r--src/nix/installables.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc
index 2d23b33b7..5385484df 100644
--- a/src/nix/installables.cc
+++ b/src/nix/installables.cc
@@ -689,6 +689,7 @@ InstallableCommand::InstallableCommand()
{
expectArgs({
.label = "installable",
+ .optional = true,
.handler = {&_installable},
.completer = {[&](size_t, std::string_view prefix) {
completeInstallable(prefix);