diff options
Diffstat (limited to 'sphinx/apidoc.py')
-rw-r--r-- | sphinx/apidoc.py | 4 |
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) |