def METHOD_NAME(self) -> None:
    try:
        optlist, args = getopt.gnu_getopt(
            self.args, "AbeEnstTuv", ["help", "number", "version"]
        )
    except getopt.GetoptError as err:
        self.errorWrite(
            f"cat: invalid option -- '{err.opt}'\nTry 'cat --help' for more information.\n"
        )
        self.exit()
        return
    for o, _a in optlist:
        if o in ("--help"):
            self.help()
            self.exit()
            return
        elif o in ("-n", "--number"):
            self.number = True
    if len(args) > 0:
        for arg in args:
            if arg == "-":
                self.output(self.input_data)
                continue
            pname = self.fs.resolve_path(arg, self.protocol.cwd)
            if self.fs.isdir(pname):
                self.errorWrite(f"cat: {arg}: Is a directory\n")
                continue
            try:
                contents = self.fs.file_contents(pname)
                if contents:
                    self.output(contents)
                else:
                    raise FileNotFound
            except FileNotFound:
                self.errorWrite(f"cat: {arg}: No such file or directory\n")
        self.exit()
    elif self.input_data is not None:
        self.output(self.input_data)
        self.exit()