Closed ZanyMonk closed 1 year ago
The ClickCompleter can now receive a shortest_only keyword argument.
ClickCompleter
shortest_only
If set to True, only the shortest version of each option will be shown by default (ie. if we keep pressing Tab & Space).
True
Tab
Space
> cmd <TAB> --verbose -v > cmd -<TAB> --verbose -v
> cmd <TAB> -v > cmd -<TAB> --verbose -v
Fixed the format to fit flake8 test.
@GhostOps77
@auvipy yep, this one looks good too! and works very well. You can merge this PR without any issues.
The
ClickCompleter
can now receive ashortest_only
keyword argument.If set to
True
, only the shortest version of each option will be shown by default (ie. if we keep pressingTab
&Space
).Before
After