aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/ui/command_line.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/ui/command_line.py')
-rwxr-xr-xlibbe/ui/command_line.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbe/ui/command_line.py b/libbe/ui/command_line.py
index bb38be8..2dff930 100755
--- a/libbe/ui/command_line.py
+++ b/libbe/ui/command_line.py
@@ -122,7 +122,7 @@ class CmdOptionParser(optparse.OptionParser):
fragment = args[i+1]
self.complete(argument, fragment)
if len(parsed_args) > len(self.command.args) \
- and self.command.args[-1] == False:
+ and self.command.args[-1].repeatable == False:
raise libbe.command.UserError('Too many arguments')
for arg in self.command.args[len(parsed_args):]:
if arg.optional == False: