#!/usr/bin/env python
from acwriting.PyDictionary import PyDictionary

import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-s","--synonym", help="Find the synonym of the given word.")
parser.add_argument("-a","--antonym", help="Find the antonym of the given word.")

args = parser.parse_args()

find = PyDictionary()
if args.synonym:
    print(find.synonym(args.synonym))
if args.antonym:
    print(find.antonym(args.antonym))