From d411e576e033510badcd40060f1886877aee82c6 Mon Sep 17 00:00:00 2001 From: pederhan Date: Wed, 16 Oct 2024 12:13:57 +0200 Subject: [PATCH] Remove `display_meta` for top-level completions --- mreg_cli/cli.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mreg_cli/cli.py b/mreg_cli/cli.py index e7da5941..fac17e00 100644 --- a/mreg_cli/cli.py +++ b/mreg_cli/cli.py @@ -221,10 +221,8 @@ def complete(self, cur: str, words: list[str]) -> Generator[Completion | Any, An if name.startswith(cur) and cur: yield Completion( name, - display_meta=self.children[name].short_desc, start_position=-len(cur), ) - break # if the line starts with one of the sub commands, pass it along if words[0] in self.children: