def ask_yes_no(question):
    """
    Ask the user a yes or no question via commandline

    :param question: The question to be displayed
    :return: True if the user answered with yes, False otherwise
    """
    while True:
        print(question + " [y/n] ")
        choice = input().lower()
        if choice in ['true', '1', 't', 'y', 'yes']:
            return True
        elif choice in ['false', '0', 'f', 'n', 'no']:
            return False
        else:
            print("Please write yes or no.")