请问一个问题, 为何这样写会出现错误呢
[程式码片段]
parser_e = subparsers.add_parser('role', help='map', description='role arguments')
parser_e.add_argument("role", nargs='+', choices=['map'],
help='role command, available parameter is map')
subsubparsers = parser_e.add_subparsers()
parser_ee = subsubparsers.add_parser('map', help='create | list', description='role map arguments')
parser_ee.add_argument("map", nargs='+', choices=['create','list'],
help='map command, available parameter is create, list')
[执行命令]
tool role map list
[错误返回]
role: error: invalid choice: 'list' (choose from 'map')