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
This invocation of list.sort with key= essentially makes every short option equal to each other and every long option equal to each other. The original order they were defined in is subject to change.
In fact... even if it were to maintain that order, the code would actually be grabbing the last long parameter.
Fix coming soon... I'll submit it. I'll change the code to match the docs.
Activity
untitaker commentedon May 18, 2017
Please also include an example that behaves unexpectedly.
Bug fix pallets#793; use deterministic option name; can't rely on lis…
ericfrederich commentedon May 18, 2017
@untitaker I provided one in the merge request... but I'll re-paste here as well.
Currently an option defined as...
@click.option('--ambitious', '--all', '-a', is_flag=True)...will target
allinstead ofambitiousI get an error
TypeError: batch() got an unexpected keyword argument 'all'Bug fix pallets#793; use the first defined long name
Bug fix pallets#793; use the first defined long name
Bug fix pallets#793; use the first defined long name
Bug fix pallets#793; use the first defined long name
Merge pull request #794 from ericfrederich/deterministic_names
nyanpasu64 commentedon Jul 27, 2018
When will Click 6.8 be released? I discovered this bug independently, but the fix hasn't been released yet.
Merge #1576
Merge #37
Update click to 7.0 (#97)