summaryrefslogtreecommitdiff
path: root/scripts
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:10:09 +0200
commited49bdd9a4c15aea9e194a5ca8a199a22ecdbd9f (patch)
treea7df07427589c6751ef41c584354aa694e9d0a59 /scripts
parentaea69ff3dfb572370e6b0514950043bd2be4a864 (diff)
downloadqutebrowser-ed49bdd9a4c15aea9e194a5ca8a199a22ecdbd9f.tar.gz
qutebrowser-ed49bdd9a4c15aea9e194a5ca8a199a22ecdbd9f.zip
Fix --asciidoc for mkvenv.py
Diffstat (limited to 'scripts')
-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'