From 0b9386e542999ed7f604b7aca858b414e44892f1 Mon Sep 17 00:00:00 2001
From: Seblu <sebastien.luttringer@smartjog.com>
Date: Mon, 14 Feb 2011 20:52:34 +0100
Subject: [PATCH] no -s option in TqlCommand when no needs (list, rights, tags)

---
 cccli/command/list.py  | 2 +-
 cccli/command/right.py | 1 +
 cccli/command/tag.py   | 3 ++-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/cccli/command/list.py b/cccli/command/list.py
index ba35dae..fe387f7 100644
--- a/cccli/command/list.py
+++ b/cccli/command/list.py
@@ -26,7 +26,7 @@ class Command_list(TqlCommand):
         self.parse_args(argv)
         if len(self.args) == 0:
             self.args.append("")
-        objs = self.rpccall("list", str.join("", self.args), _status=False)
+        objs = self.rpccall("list", str.join("", self.args))
         if len(objs) == 0:
             return
         if self.options.align:
diff --git a/cccli/command/right.py b/cccli/command/right.py
index b849ff6..a6046b4 100644
--- a/cccli/command/right.py
+++ b/cccli/command/right.py
@@ -18,6 +18,7 @@ class Command_rights(TqlCommand):
         self.set_usage("%prog [options] [tql]")
         self.add_option("--raw", action="store_true", dest="raw",
                         help="Don't append filter on request")
+        self.remove_option("-s")
 
     def __call__(self, argv):
         # Parse argline
diff --git a/cccli/command/tag.py b/cccli/command/tag.py
index cda438c..65ee219 100644
--- a/cccli/command/tag.py
+++ b/cccli/command/tag.py
@@ -20,6 +20,7 @@ class Command_tags(TqlCommand):
         self.set_usage("%prog [options] [tql]")
         self.add_option("--raw", action="store_true", dest="raw",
                         help="Don't append filter on request")
+        self.remove_option("-s")
 
     def __call__(self, argv):
         # Parse argline
@@ -34,7 +35,7 @@ class Command_tags(TqlCommand):
             tql += "&a"
         # ask server
         try:
-            objs = self.rpccall("tags", tql, _status=False)
+            objs = self.rpccall("tags", tql)
         except RpcError as e:
             raise cmdError("RPCError: %s"%str(e))
         # display answer
-- 
GitLab