2
0
Эх сурвалжийг харах

fix error msg, there is no --keep-last in borg 1.0.x, fixes #2282

Thomas Waldmann 8 жил өмнө
parent
commit
a55807e7be

+ 1 - 1
borg/archiver.py

@@ -683,7 +683,7 @@ class Archiver:
         """Prune repository archives according to specified rules"""
         """Prune repository archives according to specified rules"""
         if not any((args.hourly, args.daily,
         if not any((args.hourly, args.daily,
                     args.weekly, args.monthly, args.yearly, args.within)):
                     args.weekly, args.monthly, args.yearly, args.within)):
-            self.print_error('At least one of the "keep-within", "keep-last", '
+            self.print_error('At least one of the "keep-within", '
                              '"keep-hourly", "keep-daily", '
                              '"keep-hourly", "keep-daily", '
                              '"keep-weekly", "keep-monthly" or "keep-yearly" settings must be specified.')
                              '"keep-weekly", "keep-monthly" or "keep-yearly" settings must be specified.')
             return self.exit_code
             return self.exit_code