def METHOD_NAME(cls) -> ArgumentParser:
    from hathor.conf import HathorSettings
    settings = HathorSettings()
    def max_height(arg: str) -> Optional[int]:
        if arg.lower() == 'checkpoint':
            if not settings.CHECKPOINTS:
                raise ValueError('There are no checkpoints to use')
            return settings.CHECKPOINTS[-1].height
        elif arg:
            return int(arg)
        else:
            return None
    parser = super().METHOD_NAME()
    parser.add_argument('--export-file', type=FileType('wb', 0), required=True,
                        help='Save the export to this file')
    parser.add_argument('--export-iterator', choices=['metadata', 'timestamp_index', 'dfs'], default='metadata',
                        help='Which method of iterating to use, don\'t change unless you know what it does')
    parser.add_argument('--export-max-height', type=max_height,
                        help='Make no assumption about the mempool when using this option. It may be partially'
                        'exported or not, depending on the timestamps and the traversal algorithm.')
    parser.add_argument('--export-skip-voided', action='store_true', help='Do not export voided txs/blocks')
    return parser