Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
elif args.compounds:
if word.compounds:
display_compounds(word, args.compounds)
elif args.grammar:
display_grammar(word, args.grammar)
elif args.export:
yaml_string = yaml.dump(word.export(),
sort_keys=False, allow_unicode=True)
print(yaml_string, end='')
elif args.words_before:
print_string_or_list(word.words_before)
elif args.words_after:
print_string_or_list(word.words_after)
else:
# print the description
describe_word(word)