Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Validata
Validata Badge
Commits
0dbbdcec
Commit
0dbbdcec
authored
Mar 28, 2019
by
Christophe Benz
Browse files
Fix script argument
parent
159dc874
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/gen_doc.py
View file @
0dbbdcec
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment