1
0
Fork 0
mirror of https://github.com/shouptech/synthale.git synced 2026-02-03 15:39:45 +00:00

Add arguments to command.

This commit is contained in:
Emma 2018-12-23 11:21:17 -07:00
parent 843849e81a
commit c4b12a9877
2 changed files with 10 additions and 4 deletions

View file

@ -24,7 +24,7 @@ setup(
], ],
entry_points=''' entry_points='''
[console_scripts] [console_scripts]
synthale=synthale.cli:cli synthale=synthale.cli:main
''', ''',
classifiers=[ classifiers=[
'Development Status :: 2 - Pre-Alpha', 'Development Status :: 2 - Pre-Alpha',

View file

@ -3,7 +3,13 @@
import click import click
@click.group() @click.command()
def cli(): @click.argument('input')
"""Synthale generates Markdown files from BeerXML files.""" @click.argument('output')
def main(input, output):
"""Generate markdown files from BeerXML files.
INPUT is either a directory containing XML files, or an individual XML
file. OUTPUT is the directory to write the markdown files to.
"""
pass pass