summaryrefslogtreecommitdiff
path: root/rdiff-backup/src/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'rdiff-backup/src/main.py')
-rwxr-xr-xrdiff-backup/src/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rdiff-backup/src/main.py b/rdiff-backup/src/main.py
index c222fdc..6b1db51 100755
--- a/rdiff-backup/src/main.py
+++ b/rdiff-backup/src/main.py
@@ -146,7 +146,8 @@ class Main:
self.action == "remove-older-than"):
self.commandline_error("Only use one argument, "
"the root of the backup directory")
- if l > 2: self.commandline_error("Too many arguments given")
+ if l > 2 and self.action != "calculate-average":
+ self.commandline_error("Too many arguments given")
def commandline_error(self, message):
sys.stderr.write("Error: %s\n" % message)