scripts: Rename --no-asciidoc to --skip-docs

For consistency
This commit is contained in:
Florian Bruhin 2021-01-26 10:20:11 +01:00
parent 86863f8cd4
commit 2f918b9876
1 changed files with 2 additions and 2 deletions

View File

@ -478,7 +478,7 @@ def upgrade_sdist_dependencies():
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--no-asciidoc', action='store_true',
parser.add_argument('--skip-docs', action='store_true',
help="Don't generate docs")
parser.add_argument('--asciidoc', help="Full path to asciidoc.py. "
"If not given, it's searched in PATH.",
@ -507,7 +507,7 @@ def main():
utils.print_error("Refusing to do a release with a dirty git tree")
sys.exit(1)
if args.no_asciidoc:
if args.skip_docs:
os.makedirs(os.path.join('qutebrowser', 'html', 'doc'), exist_ok=True)
else:
run_asciidoc2html(args)