GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||
GeezerVison is showing github.com — [WIP] [1140] use longest option argument again by altendky · Pull Request #1149 · pallets/click Conversation
|
There was an error while loading. Please reload this page.
|
WIP for:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| def __init__(self, exists=False, file_okay=True, dir_okay=True, | ||
| writable=False, readable=True, resolve_path=False, | ||
| allow_dash=False, path_type=None): | ||
| allow_dash=False, path_type=None, converter=None): |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
fe85a3a to
8c80220
Compare
ea3daba to
090f0ad
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
My only feedback, other than LGTM 👍, is regarding commit messages. Maybe you could provide more context, i.e. what the change actually does and why, and possibly squash some or all of them together.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Just wanted to echo your earlier #1140 (comment) here as well:
👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@altendky, is this still a work in progress?
Since this is the course of action which you and @davidism agreed on, and the changes appear to be complete to me, I'd like to merge.
I agree that your commit messages are a bit minimal -- personally, I'd prefer them either squashed or fleshed out with explanation -- but all of the important discussion is in GitHub anyway.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| (['--aggressive', '--all', '-a'], 'aggressive'), | ||
| (['--first', '--second', '--third', '-a', '-b', '-c'], 'first'), | ||
| (['--apple', '--banana', '--cantaloupe', '-a', '-b', '-c'], 'apple'), | ||
| (['--first', '--second', '--third', '-a', '-b', '-c'], 'second'), |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This makes me so dizzy to read. 😂
I understand that we're going back to documented behavior, but this is pretty much the perfect example of why I think this comment of yours is spot on. We should really just tell people to write down what they mean...
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
After #1140 (comment) and #1140 (comment) I figured we should figure out where we are going since we have no totally obvious thing to revert to. If we want to 'just revert' for now I would think we would want the previous functionality which would be 'last long' not 'longest' like this implements. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ah, I thought after this comment that we should revert the behavior that this reverts #794. Reading that PR again, it looks like we switched from "last long opt" to "first long opt" but never updated the docs? I didn't realize we never had the also-documented "longest option" behavior. Sorry for jumping in on this without properly grasping the situation. Now that I do, I actually think this PR is probably a bad call -- we should either keep the new behavior in 7.0 and document it, or revert to pre #794 behavior and note it as a bugfix in the 7.1 changelog. IMO, keeping the new behavior and just updating the docs is the cheapest/easiest solution. If someone showed up as a new user of 7.0, then any behavior change appears to be breaking. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I only left this open to avoid thrash just in case... But yeah, this is likely just totally dead. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.