Commit 0b9386e5 authored by Seblu's avatar Seblu
Browse files

no -s option in TqlCommand when no needs (list, rights, tags)

parent b0ce317c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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:
+1 −0
Original line number Diff line number Diff line
@@ -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
+2 −1
Original line number Diff line number Diff line
@@ -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