Commit 0dbbdcec authored by Christophe Benz's avatar Christophe Benz

Fix script argument

parent 159dc874
......@@ -12,13 +12,15 @@ from pathlib import Path
import toml
from jinja2 import Template
script_dir = Path(__file__).parent
def main():
"""Generates markdown doc from badge configuration file"""
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument('conf_file', type=Path, help='path of badge config file')
parser.add_argument('--log', default='WARNING', help='level of logging messages')
parser.add_argument('--template', type=Path, default=Path('doc_md.jinja2'), help='doc template file')
parser.add_argument('--template', type=Path, default=script_dir / 'doc_md.jinja2', help='doc template file')
parser.add_argument('--output', type=Path, default=None, help='output file path')
args = parser.parse_args()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment