summaryrefslogtreecommitdiff
path: root/sphinx/apidoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-10-07 12:27:19 +0200
committerGeorg Brandl <georg@python.org>2011-10-07 12:27:19 +0200
commitff940a16b61d15bb77d1d265cecd33788b5f01ec (patch)
tree54c03f77ee13c51eba0db1748b1e6a390a92ae8f /sphinx/apidoc.py
parent1329984f2ce5c6c2303d5714d571fa406f4a7281 (diff)
downloadsphinx-git-ff940a16b61d15bb77d1d265cecd33788b5f01ec.tar.gz
Add a rudimentary manpage for sphinx-apidoc.
Diffstat (limited to 'sphinx/apidoc.py')
-rw-r--r--sphinx/apidoc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/apidoc.py b/sphinx/apidoc.py
index 96159ba7f..34381be0c 100644
--- a/sphinx/apidoc.py
+++ b/sphinx/apidoc.py
@@ -303,7 +303,9 @@ Note: By default this script will not overwrite already created files.""")
mastertocmaxdepth = opts.maxdepth,
mastertoctree = text,
)
- qs.generate(d, silent=True)
+ # XXX overwrites even without --force
+ if not opts.dryrun:
+ qs.generate(d, silent=True)
print 'Creating quickstart project and Makefile.'
elif not opts.notoc:
create_modules_toc_file(modules, opts)