api-reference-examples/python/te-tag-query/TETagQuery.py [332:375]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def __init__(self, progName, verbName):
        super(__class__, self).__init__(progName, verbName)

    def usage(self, exitCode):
        stream = sys.stdout if exitCode == 0 else sys.stderr
        output = """Usage: %s %s [options] [IDs]
Options:
--no-print-indicator -- Don't print the indicator to the terminal
Please supply IDs either one line at a time on standard input, or on the command line
after the options.
""" % (
            self.progName,
            self.verbName,
        )
        stream.write(output + "\n")
        sys.exit(exitCode)

    def handle(self, args, options):
        options["includeIndicatorInOutput"] = True
        options["pageSize"] = 10

        while True:
            if len(args) == 0:
                break
            if args[0][0] != "-":
                break
            option = args[0]
            args = args[1:]

            if option == "-h":
                self.usage(0)
            elif option == "--help":
                self.usage(0)

            elif option == "--tagged-since":
                if len(args) < 1:
                    self.usage(1)
                options["taggedSince"] = args[0]
                args = args[1:]
            elif option == "--tagged-until":
                if len(args) < 1:
                    self.usage(1)
                options["taggedUntil"] = args[0]
                args = args[1:]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



api-reference-examples/python/te-tag-query/TETagQuery.py [421:475]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def __init__(self, progName, verbName):
        super(__class__, self).__init__(progName, verbName)

    def usage(self, exitCode):
        stream = sys.stdout if exitCode == 0 else sys.stderr
        output = """Usage: %s %s [options] {tag name}
Options:
--tagged-since {x}
--tagged-until {x}
--created-since {x}
--created-until {x}

  Timestamp options for all four are epoch seconds, various datetime formats
  including "2020-12-34T56:07:08+0900", and time-deltas like "-5minutes",
  "-3hours", "-1week".

  At most one of --tagged-since and --created-since can be specified; likewise
  --tagged-until and --created-until.

--page-size {x}
--no-print-indicator -- Don't print the indicator to the terminal
""" % (
            self.progName,
            self.verbName,
        )
        stream.write(output + "\n")
        sys.exit(exitCode)

    def handle(self, args, options):
        options["includeIndicatorInOutput"] = True
        options["pageSize"] = 10

        while True:
            if len(args) == 0:
                break
            if args[0][0] != "-":
                break
            option = args[0]
            args = args[1:]

            if option == "-h":
                self.usage(0)
            elif option == "--help":
                self.usage(0)

            elif option == "--tagged-since":
                if len(args) < 1:
                    self.usage(1)
                options["taggedSince"] = args[0]
                args = args[1:]
            elif option == "--tagged-until":
                if len(args) < 1:
                    self.usage(1)
                options["taggedUntil"] = args[0]
                args = args[1:]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



