logilab-common #6509 new options without [yn] in contradiction with option names [deprecated]
w options without [yn] in are contradiction with option names and option help messages; example: pylint --help [...] -r, --reports Tells wether to display a full report or only the messages [current: yes] but: pylint --reports disables the reports ! also, the ancient use '-yn' is broken ... | |
priority | important |
---|---|
type | bug |
done in | 0.54.0 |
load | 0.000 |
load left | 0.000 |
closed by | <not specified> |
Comments
-
2008/11/06 09:49
-
2008/11/11 01:40, written by anon
-
2008/11/14 12:06, written by nchauvat
add commentThe traditionnal way of handling these options is to use --no-reports to replace --report n and to keep --reports to mean --reports y. Using the presence of the option to toggle the value is confusing.
The =[yn] syntax should still be supported for compatibility reasons, to avoid breaking fex Eclipse+pydev usage of pylint.
I am backing out 692:8c66ea05839d to return to the previous behavior. Next time we will do it right.