diff --git a/pokedex/main.py b/pokedex/main.py index 3ba4820..d10f75e 100644 --- a/pokedex/main.py +++ b/pokedex/main.py @@ -28,6 +28,9 @@ def main(*argv): else: command_help() +def setuptools_entry(): + main(*sys.argv) + def get_parser(verbose=True): """Returns an OptionParser prepopulated with the global options. diff --git a/setup.py b/setup.py index 5c71530..a2cef50 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup( entry_points = { 'console_scripts': [ - 'pokedex = pokedex.main:main', + 'pokedex = pokedex.main:setuptools_entry', ], }, )