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
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 "--"