Browse Source

add bitelab as a script to get installed, display usage if no commands..

main
John-Mark Gurney 4 years ago
parent
commit
f36f9b5803
2 changed files with 8 additions and 0 deletions
  1. +3
    -0
      bitelab/__main__.py
  2. +5
    -0
      setup.py

+ 3
- 0
bitelab/__main__.py View File

@@ -159,6 +159,9 @@ async def real_main():

brd = Board.parse_obj(res.json())
output_board(brd)
else:
parser.print_usage()
sys.exit(5)

finally:
await client.aclose()


+ 5
- 0
setup.py View File

@@ -30,4 +30,9 @@ setup(
extras_require = {
'dev': [ 'coverage' ],
},
entry_points={
'console_scripts': [
'bitelab = bitelab.__main__:main',
]
}
)

Loading…
Cancel
Save