cli: Show filter only when a subject is specified in autocompletion

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
(cherry picked from commit 7ea83b82e6)

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2013-01-28 16:30:04 -08:00
parent 99a04a416c
commit 59d01bfe20
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ class CloudMonkeyShell(cmd.Cmd, object):
self.cache_verbs[verb][subject][1])
search_string = text
if self.tabularize == "true":
if self.tabularize == "true" and subject != "":
autocompletions.append("filter=")
return [s for s in autocompletions if s.startswith(search_string)]