Allow infinite search with 0
This commit is contained in:
parent
2eed02568b
commit
0072b5e076
1 changed files with 1 additions and 3 deletions
|
|
@ -454,9 +454,7 @@ class ReplApplication(Cmd, ConsoleApplication):
|
|||
else:
|
||||
self.condition = None
|
||||
|
||||
if self.options.count == 0:
|
||||
self._parser.error('Count must be at least 1, or negative for infinite')
|
||||
elif self.options.count < 0:
|
||||
if self.options.count <= 0:
|
||||
# infinite search
|
||||
self.options.count = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue