rn argparse to config