from typing import Any


def generate_filename(document_date: str, args: Any) -> str:
    """Generate a filename depending on CLI arguments."""
    if args.output_file:
        return str(args.output_file)
    return f"tdc-{document_date}"