Re: [gentoo-portage-dev] [PATCH v2] install.py: ignore -Z / --context

2019-11-07 Thread Zac Medico
On 11/7/19 1:18 PM, Mike Gilbert wrote: > The --context option accepts an optional argument, but only if it is > passed via --context=arg. The argparse module does not deal with this > properly. > > To work around this, have argparse ignore this option, and filter out > any remaining arguments

[gentoo-portage-dev] [PATCH v2] install.py: ignore -Z / --context

2019-11-07 Thread Mike Gilbert
The --context option accepts an optional argument, but only if it is passed via --context=arg. The argparse module does not deal with this properly. To work around this, have argparse ignore this option, and filter out any remaining arguments that start with a hyphen and do not occur after a "--"