[Python-ideas] pep 397

Chris Angelico rosuav at gmail.com
Thu Jan 15 16:58:45 CET 2015


On Fri, Jan 16, 2015 at 2:54 AM, Steven D'Aprano <steve at pearwood.info> wrote:
>> Ooh that would be a nice feature. I'd be inclined to call it --query
>> rather than --dry-run, but that's just bike-shedding.
>
> Sometimes bike-shedding has a bad reputation. Option names should
> reflect what they do. --dry-run suggests that it will run the script
> except for anything destructive (e.g. writing or deleting files,
> printing a 300 page report). --query is better, but query what?

"Just" bike-shedding means that I support the feature, and think it's
a great idea, but all it needs is a different name. And you're right,
--which-executable would be better than --query.

ChrisA


More information about the Python-ideas mailing list