#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
def parse_args():
parser = argparse.ArgumentParser(add_help=True, version='1.0.0')
parser.add_argument("-c", "--country", dest='country', nargs='+', required=True, help="Help string")
return parser.parse_args()
arguments = parse_args()
args = arguments.__dict__
print(args)
$ python3 myscript.py --country Moscow Russia