[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Duplicity-talk] [PATCH 1/2] rdiffdir: allow lower-bounds-only for actio
From: |
Laszlo Ersek |
Subject: |
[Duplicity-talk] [PATCH 1/2] rdiffdir: allow lower-bounds-only for action operands |
Date: |
Mon, 31 Dec 2012 16:35:54 +0100 |
Signed-off-by: Laszlo Ersek <address@hidden>
---
bin/rdiffdir | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/rdiffdir b/bin/rdiffdir
index 3625f5e..17640ca 100755
--- a/bin/rdiffdir
+++ b/bin/rdiffdir
@@ -121,10 +121,10 @@ def check_does_not_exist(filename):
def get_action(args):
"""Figure out the main action from the arguments"""
- def require_args(num):
+ def require_args(num, upper_bound_too=True):
if len(args)-1 < num:
command_line_error("Too few arguments")
- elif len(args)-1 > num:
+ elif upper_bound_too and len(args)-1 > num:
command_line_error("Too many arguments")
if not args:
--
1.7.1