_fix_argv() fails with Argparse's action='append'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-client-config |
New
|
Undecided
|
Unassigned |
Bug Description
Python Argparse supports the 'append' action [1] which is super handy to allow a user to repeat several times the same argument, each time with different values.
This doesn't work with occ that tries to "fix argv" but raises this error:
os_client_
Reproducer:
-------
import argparse
import sys
import os_client_config
cloud_config = os_client_
parser = argparse.
parser.
cloud_config.
options = parser.parse_args()
cloud = cloud_config.
print(repr(
-------
python main2.py --foo 1 --foo 2
Related fix proposed to branch: master /review. openstack. org/459115
Review: https:/