From 6b5c27decd829cd03fde80082f76bc43df138a77 Mon Sep 17 00:00:00 2001 From: Lucien A Date: Fri, 23 Jun 2023 22:05:20 +0200 Subject: [PATCH] fix format --- click_repl/_completer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/click_repl/_completer.py b/click_repl/_completer.py index aeaff63..f837ae1 100644 --- a/click_repl/_completer.py +++ b/click_repl/_completer.py @@ -203,9 +203,9 @@ def _get_completion_for_cmd_args( opts = param.opts + param.secondary_opts if (self.shortest_only - and not incomplete # just typed a space - and args[-1] not in opts # not selecting a value for a longer version of this option - ): + and not incomplete # just typed a space + # not selecting a value for a longer version of this option + and args[-1] not in opts): opts = [min(opts, key=len)] for option in opts: