1
0
Fork 0
mirror of https://github.com/shouptech/synthale.git synced 2026-02-03 07:29:42 +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='''
[console_scripts]
synthale=synthale.cli:cli
synthale=synthale.cli:main
''',
classifiers=[
'Development Status :: 2 - Pre-Alpha',

View file

@ -3,7 +3,13 @@
import click
@click.group()
def cli():
"""Synthale generates Markdown files from BeerXML files."""
@click.command()
@click.argument('input')
@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