api-reference-examples/python/te-tag-query/TETagQuery.py [1058:1090]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            elif option == "-i" or option == "--indicator":
                if len(args) < 1:
                    self.usage(1)
                postParams[names["indicator"]] = args[0]
                args = args[1:]

            elif option == "-t" or option == "--type":
                if len(args) < 1:
                    self.usage(1)
                postParams[names["type"]] = args[0]
                args = args[1:]

            elif option == "--tags":
                if len(args) < 1:
                    self.usage(1)
                postParams[names["tags"]] = args[0]
                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)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



api-reference-examples/python/te-tag-query/TETagQuery.py [1312:1344]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            elif option == "-i" or option == "--indicator":
                if len(args) < 1:
                    self.usage(1)
                postParams[names["indicator"]] = args[0]
                args = args[1:]

            elif option == "-t" or option == "--type":
                if len(args) < 1:
                    self.usage(1)
                postParams[names["type"]] = args[0]
                args = args[1:]

            elif option == "--tags":
                if len(args) < 1:
                    self.usage(1)
                postParams[names["tags"]] = args[0]
                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)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



