You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 26, 2026. It is now read-only.
use comma separated lists. This is a common approach, but argparse does not support natively with the "choices" option (which is currently in use). If the "choices" functionality is not precious, then this is possible, and I would recommend creating a custom type for argparse to enforce. [1]
keep space separated, and loop over the list of valid options. When an invalid option is found, assume that you're at the end of the list. That "invalid" option is either a file, or an argument. Then the normal error checking ("invalid argument" or "file not found) will kick in if the argument is indeed flase. Otherwise it's valid, and the program works as intended.
I attempted to make this change myself in a PR, but the code for ignore seems to reach into everything.
Two options that I see:
I attempted to make this change myself in a PR, but the code for
ignoreseems to reach into everything.