diff --git a/chkcrontab b/chkcrontab
index e11510e377b9f63fcfff1d4d2eeb75dd63203144..c9573c7a89e5e015f1af01e59573f38ab1490e84 100755
--- a/chkcrontab
+++ b/chkcrontab
@@ -32,12 +32,19 @@ import chkcrontab_lib as check
def main(argv):
"""main program."""
- if len(argv) != 2:
+ if len(argv) == 1:
print('ERROR: No crontab file was specified.')
sys.exit(1)
+
+ if len(argv) > 2:
+ for arg in argv:
+ if '--whitelist' in arg:
+ whitelist_users = arg['--whitelist='.__len__():].split(',')
+
+
log = check.LogCounter()
print('Checking correctness of %s' % argv[1])
return check.check_crontab(argv[1], log)
if __name__ == '__main__':
- sys.exit(main(sys.argv))
+ sys.exit(main(sys.argv))
\ No newline at end of file