-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
abbreviations mess up the priority order of arguments #217
Comments
This is a bug. The problem is at least partly due to checking for exact matches without first converting prefixes to their corresponding full option names. |
Replacing ConfigArgParse/configargparse.py Lines 1058 to 1060 in d8eb873
with
should fix this, but argparse has since added an |
In my scenrio I have values being set in the config file like:
ignore = [errors]
Starting my script with:
htcanalyze --ignore recources
will override the internal list
ignore = [recources]
HOWEVER, when I only use the prefix:
htcanalyze --ign recources
it will result in
ignore = [errors]
.In this case the config values will not be overwritten, which will result in different user experiences cause no error is thrown due to the ability of argparse on matching prefixes.
This is related to the issue of my project:
psyinfra/HTCAnalyze#90
The text was updated successfully, but these errors were encountered: