jmsv / ety-python

A Python module to discover the etymology of words
http://ety-python.rtfd.io
MIT License
144 stars 18 forks source link

Allow running as a module #18

Closed alxwrd closed 6 years ago

alxwrd commented 6 years ago

This adds the ability to do python -m ety on the ety folder so installing isn't required to run on the command line.

I added the prog keyword argument to ArgumentParser to change the output from usage: __main__.py [-h] [-r] [-t] words [words ...] to usage: ety [-h] [-r] [-t] words [words ...] for this use case.

jmsv commented 6 years ago

@alxwrd Excellent idea, I didn't think of this 😂