simplifying options and code
This commit is contained in:
@@ -21,9 +21,7 @@ from optparse import OptionParser
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = OptionParser("%prog CONFIG [options]")
|
||||
parser.add_option('-z', '--zero_byte_only', default=False,
|
||||
action='store_true', help='Audit only zero byte files')
|
||||
parser.add_option('-f', '--zero_byte_fps',
|
||||
help='Override zero byte files per second in config.')
|
||||
parser.add_option('-z', '--zero_byte_fps',
|
||||
help='Audit only zero byte files at specified files/sec')
|
||||
conf_file, options = parse_options(parser=parser, once=True)
|
||||
run_daemon(ObjectAuditor, conf_file, **options)
|
||||
|
||||
Reference in New Issue
Block a user