Skip to content

Commit

Permalink
Simple intuitive naming for the 2.0.0 runner
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Mar 1, 2016
1 parent dbdb259 commit ea3f852
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions hug/development_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
import hug


@hug.cli('hug', version=hug.__version__)
def development_tool(file:'A Python file that contains a Hug API', module:'A Python module that contains a Hug API',
port:hug.types.int=8000, no_404_documentation:hug.types.boolean=False):
@hug.cli(version=hug.__version__)
def hug(file:'A Python file that contains a Hug API', module:'A Python module that contains a Hug API',
port:hug.types.int=8000, no_404_documentation:hug.types.boolean=False):
"""Hug API Development Server"""
api_module = None
server_arguments = {}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def list_modules(dirname):
license="MIT",
entry_points={
'console_scripts': [
'hug = hug:run.terminal',
'hug = hug:development_runner.hug.interface.cli',
]
},
packages=['hug'],
Expand Down

0 comments on commit ea3f852

Please sign in to comment.