simplifying options and code

This commit is contained in:
David Goetz
2011-02-21 16:37:12 -08:00
parent 7144693bf5
commit a86a569cae
5 changed files with 35 additions and 38 deletions

View File

@@ -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)