def isArgumentlessJavaOption(line):
    """ Determine whether a given line contains a command line option that does
        not take arguments.

    Parameters
    ----------
    line : str
        A line of the build output

    Returns
    -------
    bool
        True if the line contains an option that doesn't take arguments

    """
    argumentlessOptions = ["agentlib",
                           "agentpath",
                           "disableassertions",
                           "D",
                           "da",
                           "enableassertions",
                           "ea",
                           "enablesystemassertions",
                           "esa",
                           "disablesystemassertions",
                           "dsa",
                           "javaagent",
                           "jre-restrict-search",
                           "no-jre-restrict-search",
                           "showversion",
                           "splash",
                           "verbose",
                           "version",
                           "X"]
    for a in argumentlessOptions:
        if line.startswith("-{}".format(a)):
            return True
    return False