Only show possibilities when verbose mode is active.

parent 361a0f1b
...@@ -118,13 +118,13 @@ class Parser(BisonParser): ...@@ -118,13 +118,13 @@ class Parser(BisonParser):
def hook_read_before(self): def hook_read_before(self):
if self.possibilities: if self.possibilities:
if self.interactive: # pragma: nocover if self.verbose: # pragma: nocover
print 'possibilities:' print 'possibilities:'
items = filter_duplicates(self.possibilities) items = filter_duplicates(self.possibilities)
self.last_possibilities = self.possibilities self.last_possibilities = self.possibilities
if self.interactive: # pragma: nocover if self.verbose: # pragma: nocover
print ' ' + '\n '.join(map(str, items)) print ' ' + '\n '.join(map(str, items))
def hook_read_after(self, data): def hook_read_after(self, data):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment