cli: give filter option only when output 'tabularized' is enabled

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2013-01-24 11:28:49 -08:00
parent 531c2f030c
commit 71257d6bb4
1 changed files with 2 additions and 1 deletions

View File

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