api-reference-examples/python/te-tag-query/TETagQuery.py [1200:1231]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                args = args[1:]

            else:
                handled, args = self.commonPosterOptionCheck(option, args, postParams)
                if not handled:
                    eprint(
                        "%s %s: unrecognized  option %s"
                        % (self.progName, self.verbName, option)
                    )
                    sys.exit(1)

        if len(args) > 0:
            eprint(
                '%s %s: extraneous argument(s) "%s"'
                % (self.progName, self.verbName, " ".join(args))
            )
            sys.exit(1)

        if options["descriptorIDsFromStdin"]:
            if postParams.get(names["descriptor_id"], None) != None:
                eprint(
                    "%s %s: only one of -N and -n must be supplied."
                    % (self.progName, self.verbName)
                )
                sys.exit(1)
            while True:
                # Python line-reader returns the trailing newlines so
                # we need to right-strip the lines
                line = sys.stdin.readline()
                if line == "":
                    break
                postParams[names["descriptor_id"]] = line.rstrip()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



api-reference-examples/python/te-tag-query/TETagQuery.py [1328:1359]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                args = args[1:]

            else:
                handled, args = self.commonPosterOptionCheck(option, args, postParams)
                if not handled:
                    eprint(
                        "%s %s: unrecognized  option %s"
                        % (self.progName, self.verbName, option)
                    )
                    sys.exit(1)

        if len(args) > 0:
            eprint(
                '%s %s: extraneous argument(s) "%s"'
                % (self.progName, self.verbName, " ".join(args))
            )
            sys.exit(1)

        if options["descriptorIDsFromStdin"]:
            if postParams.get(names["descriptor_id"], None) != None:
                eprint(
                    "%s %s: only one of -N and -n must be supplied."
                    % (self.progName, self.verbName)
                )
                sys.exit(1)
            while True:
                # Python line-reader returns the trailing newlines so
                # we need to right-strip the lines
                line = sys.stdin.readline()
                if line == "":
                    break
                postParams[names["descriptor_id"]] = line.rstrip()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



