about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/nix-collect-garbage.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/nix-collect-garbage.in b/scripts/nix-collect-garbage.in
index 52f2743675cf..9b471d896e60 100755
--- a/scripts/nix-collect-garbage.in
+++ b/scripts/nix-collect-garbage.in
@@ -8,11 +8,11 @@ my $storedir = "@prefix@/store";
 
 my %alive;
 
-my $keepsuccessors = 0;
+my $keepsuccessors = 1;
 my $invert = 0;
 
 foreach my $arg (@ARGV) {
-    if ($arg eq "--keep-successors") { $keepsuccessors = 1; }
+    if ($arg eq "--no-successors") { $keepsuccessors = 0; }
     elsif ($arg eq "--invert") { $invert = 1; }
     else { die "unknown argument `$arg'" };
 }