summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-03-30 20:53:33 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-03-31 13:29:54 +0200
commit965ca663a1bc23a4e15a0b381d3b515702c6b926 (patch)
treeaa2f01c5716f83c3dbd7047aa6340c08168240ec
parent3642c34b5ca474aa73ab60e6d33f0fa715341739 (diff)
downloadqutebrowser-965ca663a1bc23a4e15a0b381d3b515702c6b926.tar.gz
qutebrowser-965ca663a1bc23a4e15a0b381d3b515702c6b926.zip
Fix --asciidoc for mkvenv.py
(cherry picked from commit ed49bdd9a4c15aea9e194a5ca8a199a22ecdbd9f)
-rwxr-xr-xscripts/mkvenv.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/scripts/mkvenv.py b/scripts/mkvenv.py
index a3b3bf32d..51b10d254 100755
--- a/scripts/mkvenv.py
+++ b/scripts/mkvenv.py
@@ -80,10 +80,9 @@ def parse_args(argv: List[str] = None) -> argparse.Namespace:
parser.add_argument('--virtualenv',
action='store_true',
help="Use virtualenv instead of venv.")
- parser.add_argument('--asciidoc', help="Full path to python and "
- "asciidoc.py. If not given, it's searched in PATH.",
- nargs=2, required=False,
- metavar=('PYTHON', 'ASCIIDOC'))
+ parser.add_argument('--asciidoc', help="Full path to asciidoc.py. "
+ "If not given, asciidoc is searched in PATH.",
+ nargs='?',)
parser.add_argument('--dev',
action='store_true',
help="Also install dev/test dependencies.")
@@ -395,12 +394,11 @@ def install_qutebrowser(venv_dir: pathlib.Path) -> None:
pip_install(venv_dir, '-e', str(REPO_ROOT))
-def regenerate_docs(venv_dir: pathlib.Path,
- asciidoc: Optional[Tuple[str, str]]):
+def regenerate_docs(venv_dir: pathlib.Path, asciidoc: Optional[str]):
"""Regenerate docs using asciidoc."""
utils.print_title("Generating documentation")
if asciidoc is not None:
- a2h_args = ['--asciidoc'] + asciidoc
+ a2h_args = ['--asciidoc', asciidoc]
else:
a2h_args = []
script_path = pathlib.Path(__file__).parent / 'asciidoc2html.py'