summaryrefslogtreecommitdiff
path: root/clean_repo.py
diff options
context:
space:
mode:
Diffstat (limited to 'clean_repo.py')
-rwxr-xr-xclean_repo.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/clean_repo.py b/clean_repo.py
index bc401b5..6f3d632 100755
--- a/clean_repo.py
+++ b/clean_repo.py
@@ -80,11 +80,9 @@ if __name__ == "__main__":
args=parser.parse_args()
- if not args.directory and not args.database:
- parser.print_help()
- elif not args.pending_file or not args.whitelist_file \
- and args.database:
+ if args.database and not (args.pending_file and args.whitelist_file):
parser.print_help()
+ exit(1)
blacklisted=listado(args.blacklist_file)