diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-20T13·12+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-20T13·12+0200 |
commit | 392430b2c4ceb2e476abe2b3acc928581b2a1445 (patch) | |
tree | 30db8572f28c8def55f3b4dcce988a6ed4c778e9 /src/nix-store/nix-store.cc | |
parent | 894fa5e42dd952caa702794964a13845ccf6f29a (diff) |
nix-store -l: Automatically pipe output into $PAGER
Diffstat (limited to 'src/nix-store/nix-store.cc')
-rw-r--r-- | src/nix-store/nix-store.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index 6a297b429239..abe4c7e3923f 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -459,6 +459,8 @@ static void opReadLog(Strings opFlags, Strings opArgs) { if (!opFlags.empty()) throw UsageError("unknown flag"); + RunPager pager; + foreach (Strings::iterator, i, opArgs) { Path path = useDeriver(followLinksToStorePath(*i)); |