import click


def output_path(file_okay=False, dir_okay=False):
    """Add click.argument for output path.

    :param file_okay: is output a file, defaults to False
    :type file_okay: bool, optional
    :param dir_okay: is output a directory, defaults to False
    :type dir_okay: bool, optional
    :return: click.argument decorator
    :rtype: click.Argument
    """
    return click.argument(
        "output_path",
        metavar="OUTPUT",
        type=click.Path(
            exists=False, file_okay=file_okay, dir_okay=dir_okay, writable=True
        ),
    )