Commit b7badedd authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Check input parameters

parent 5e5e81d0
......@@ -278,10 +278,15 @@ if __name__ == "__main__":
args = parser.parse_args()
if args.min_qoverlap < 0 or args.min_qoverlap > 100:
print("Error: min qoverlap (-q/--min-qoverlap) needs to be between 0 and 100", file=sys.stderr)
exit(1)
if not os.path.exists(args.output_dir):
os.makedirs(args.output_dir)
elif not os.path.isdir(args.output_dir):
print("Error: output folder %s exists but is not a folder" % args.output_dir, file=sys.stderr)
exit(1)
# Map:
if args.map is None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment