def _parse_args():
    parser = argparse.ArgumentParser(description='Flashcard app for German grammatical genders.')
    mode = parser.add_mutually_exclusive_group(required=True)
    mode.add_argument('-q', '--quiz', type=int, help='Start the app in quiz mode.', dest='quiz_length')
    mode.add_argument('-a', '--add-words', action='store_true', help='Start the app in manual word addition mode.')
    mode.add_argument('-l', '--load-words', help='Concatenates a prewritten list of words into the saved WordList.')
    mode.add_argument('-r', '--reset-scores', action='store_true', help='Reset all scores in the specified word list.')
    parser.add_argument('-w', '--words', default='main_list', help='The name of the WordList to use.')
    return parser.parse_args()
def _parse_args():
    parser = argparse.ArgumentParser(description='Flashcard app for German grammatical genders.')
    mode = parser.add_mutually_exclusive_group(required=True)
    mode.add_argument('-q', '--quiz', type=int, help='Start the app in quiz mode.', dest='quiz_length')
    mode.add_argument('-a', '--add-words', action='store_true', help='Start the app in manual word addition mode.')
    mode.add_argument('-l', '--load-words', help='Concatenates a prewritten list of words into the saved WordList.')
    mode.add_argument('-r', '--reset-scores', action='store_true', help='Reset all scores in the specified word list.')
    parser.add_argument('-w', '--words', default='main_list', help='The name of the WordList to use.')
    return parser.parse_args()