Skip to content

Commit 59d01bf

Browse files
committed
cli: Show filter only when a subject is specified in autocompletion
Signed-off-by: Rohit Yadav <bhaisaab@apache.org> (cherry picked from commit 7ea83b8) Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 99a04a4 commit 59d01bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/cli/cloudmonkey/cloudmonkey.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def completedefault(self, text, line, begidx, endidx):
400400
self.cache_verbs[verb][subject][1])
401401
search_string = text
402402

403-
if self.tabularize == "true":
403+
if self.tabularize == "true" and subject != "":
404404
autocompletions.append("filter=")
405405
return [s for s in autocompletions if s.startswith(search_string)]
406406

0 commit comments

Comments
 (0)