Skip to content

Commit

Permalink
Skip completions from active subprocess completer (#289)
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
  • Loading branch information
sloretz committed Mar 10, 2020
1 parent d2c12c3 commit 223fa83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions argcomplete/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,9 @@ def _complete_active_option(self, parser, next_positional, cword_prefix, parsed_
completer = self.default_completer

if completer:
if isinstance(completer, SuppressCompleter) and completer.suppress():
continue

if callable(completer):
completions_from_callable = [c for c in completer(
prefix=cword_prefix, action=active_action, parser=parser, parsed_args=parsed_args)
Expand Down

0 comments on commit 223fa83

Please sign in to comment.