Commit 2a63598a authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema

Fix argparse

parent 0d40fe67
......@@ -123,4 +123,9 @@ if __name__ == "__main__":
args = parser.parse_args()
if args.infile is None and args.outfile is None:
parser.error("One of --infile or --outfile is required")
if args.infile is None and args.source is None:
parser.error("Without infile, --source must be specified")
create_filterbank(infile=args.infile, outfile=args.outfile, date=args.date, source=args.source)
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