Make this a conversion function and supply to `argparse` as `type` argument.