aboutsummaryrefslogtreecommitdiff
path: root/src/nix/repl.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-05-11 15:46:18 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-05-11 15:57:45 +0200
commit4c3c638a05e52cdc3bd96255873b711a28630288 (patch)
tree627e46d9835ef9ba3be2c49dd27b9543d750f97f /src/nix/repl.cc
parent0884f180f5ca8a864e6db5256eaa10646e87d671 (diff)
Cleanup
Diffstat (limited to 'src/nix/repl.cc')
-rw-r--r--src/nix/repl.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc
index 2e7b14d08..c936f9cc2 100644
--- a/src/nix/repl.cc
+++ b/src/nix/repl.cc
@@ -767,7 +767,11 @@ struct CmdRepl : StoreCommand, MixEvalArgs
CmdRepl()
{
- expectPathArgs("files", &files);
+ expectArgs({
+ .label = "files",
+ .handler = {&files},
+ .completer = completePath
+ });
}
std::string description() override