argparse options argument code example
Example 1: argparse required arguments
parser.add_argument('--use-lang', required=True, help="Output language")
Example 2: argparse list of options
parser.add_argument('--list',
default='all',
const='all',
nargs='?',
choices=['servers', 'storage', 'all'],
help='list servers, storage, or both (default: %(default)s)')