improve job class selection code
+ consistent argument order for add_argument() calls
This commit is contained in:
@@ -204,14 +204,8 @@ def main():
|
||||
if args.list_urls:
|
||||
jobtype = job.UrlJob
|
||||
jobtype.maxdepth = args.list_urls
|
||||
elif args.list_keywords:
|
||||
jobtype = job.KeywordJob
|
||||
elif args.list_data:
|
||||
jobtype = job.DataJob
|
||||
elif args.simulate:
|
||||
jobtype = job.SimulationJob
|
||||
else:
|
||||
jobtype = job.DownloadJob
|
||||
jobtype = args.jobtype or job.DownloadJob
|
||||
|
||||
urls = args.urls
|
||||
if args.inputfile:
|
||||
|
||||
Reference in New Issue
Block a user