def METHOD_NAME(self, args: argparse.Namespace) -> None:
    '''
    '''
    argvs = { f : args.args for f in args.files}
    applications = build_single_handler_applications(args.files, argvs)
    if args.output is None:
        outputs: list[str] = []
    else:
        outputs = list(args.output)  # copy so we can pop from it
    if len(outputs) > len(applications):
        die("--output/-o was given too many times (%d times for %d applications)" %
            (len(outputs), len(applications)))
    for (route, app) in applications.items():
        doc = app.create_document()
        if len(outputs) > 0:
            filename = outputs.pop(0)
        else:
            filename = self.filename_from_route(route, self.extension)
        self.write_file(args, filename, doc)