Skip to content

Commit dbc65af

Browse files
author
legolas.zhan
committed
fixed hoobit --version
1 parent d6506fd commit dbc65af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hobbit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def format_commands(self, ctx, formatter):
9595
cls=HobbitGroup,
9696
epilog='More details: https://hobbit-core.readthedocs.io/zh/latest/',
9797
context_settings=CONTEXT_SETTINGS)
98-
@click.version_option()
98+
@click.version_option(package_name='hobbit_core')
9999
@click.option('--echo/--no-echo', default=False,
100100
help='Show the logs of command.')
101101
@click.pass_context

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ def gen_data(data_root='static'):
7878
],
7979
},
8080
entry_points={
81-
'console_scripts': 'hobbit = hobbit:main [hobbit]'
81+
'console_scripts': 'hobbit=hobbit:main'
8282
},
8383
)

0 commit comments

Comments
 (0)