With argparse , I have the following line:
parser.add_argument("-p", "--parameter", type=str, default=None, nargs='+', help="some option", choices=allValues.keys() )
The received help message shows all the values ββin allValues :
-p {a, b, c, d, e, f, g, h, i, l, m; a, b, c, d, e, f, g, h, i, l, m} [{a, b, c, d, e, f, g, h, i, l, m} ...] , -parameter {a, b, c, d, e, f, g, h, i, l, m; a, b, c, d, e, f, g, h, i, l, m} [{a, b, c, d, e, f, g, h, i, l, m; a, b, c, d, e, f, g, h, i, l, m} ...] some option
Is it possible to remove {a ,b ,c , d, e, f, g, h, i, l, m; a ,b ,c , d, e, f, g, h, i, l, m} {a ,b ,c , d, e, f, g, h, i, l, m; a ,b ,c , d, e, f, g, h, i, l, m} above and just display the name this parameter and help message?