comparison idavoll/tap.py @ 76:66fac7cd9edc

Added -v (--verbose) flag to print out all traffic.
author Ralph Meijer <ralphm@ik.nu>
date Mon, 08 Nov 2004 14:06:54 +0000
parents 7d088c61e131
children cf918d581da5
comparison
equal deleted inserted replaced
75:1f7b8b6b8ce9 76:66fac7cd9edc
11 ('rport', None, '6000'), 11 ('rport', None, '6000'),
12 ('backend', None, 'memory'), 12 ('backend', None, 'memory'),
13 ('dbuser', None, ''), 13 ('dbuser', None, ''),
14 ('dbname', None, 'pubsub'), 14 ('dbname', None, 'pubsub'),
15 ] 15 ]
16
17 optFlags = [('verbose', 'v', 'Show traffic')]
16 18
17 def postOptions(self): 19 def postOptions(self):
18 if self['backend'] not in ['pgsql', 'memory']: 20 if self['backend'] not in ['pgsql', 'memory']:
19 raise usage.UsageError, "Unknown backend!" 21 raise usage.UsageError, "Unknown backend!"
20 22