Accept 0 and negative value for count

We already accept zero and negative value with the option -n, for
consistency it is good to accept it in interactive mode.
This commit is contained in:
Florent 2014-01-07 18:59:19 +01:00
commit a5a4c2e44a

View file

@ -832,8 +832,8 @@ class ReplApplication(Cmd, ConsoleApplication):
self.options.count = count
self._is_default_count = False
else:
print >>sys.stderr, 'Number must be at least 1.'
return 2
self.options.count = None
self._is_default_count = False
else:
if self.options.count is None:
print 'Counting disabled.'