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:
parent
843849e81a
commit
c4b12a9877
2 changed files with 10 additions and 4 deletions
2
setup.py
2
setup.py
|
|
@ -24,7 +24,7 @@ setup(
|
|||
],
|
||||
entry_points='''
|
||||
[console_scripts]
|
||||
synthale=synthale.cli:cli
|
||||
synthale=synthale.cli:main
|
||||
''',
|
||||
classifiers=[
|
||||
'Development Status :: 2 - Pre-Alpha',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue