New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow running as a module #18

Merged
merged 2 commits into from Jun 8, 2018

Conversation

Projects
None yet
2 participants
@alxwrd
Copy link
Collaborator

alxwrd commented Jun 7, 2018

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

This comment has been minimized.

Copy link
Owner

jmsv commented Jun 8, 2018

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

@jmsv jmsv merged commit f570021 into jmsv:master Jun 8, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@alxwrd alxwrd deleted the alxwrd:allow-module-use branch Jun 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment