diff options
author | Daniel Hahler <git@thequod.de> | 2018-06-13 20:29:46 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2018-06-13 20:31:23 +0200 |
commit | b150d79b4b00e6d2d8c6c33b45b955c0b134bdbb (patch) | |
tree | 5bd7997e60f688188ea97be068d3b7337afa492f /sphinx/setup_command.py | |
parent | 2855721d0b6584906f7f2a8b79d9fbec03be912d (diff) | |
download | sphinx-git-b150d79b4b00e6d2d8c6c33b45b955c0b134bdbb.tar.gz |
BuildDoc: link verbosity to distutils'
This preserves the current behavior (using 0), but picks up distutils' `-v`
and `-q` options.
Diffstat (limited to 'sphinx/setup_command.py')
-rw-r--r-- | sphinx/setup_command.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sphinx/setup_command.py b/sphinx/setup_command.py index c54179227..f281ce6ef 100644 --- a/sphinx/setup_command.py +++ b/sphinx/setup_command.py @@ -105,7 +105,8 @@ class BuildDoc(Command): self.config_dir = None # type: unicode self.link_index = False self.copyright = '' - self.verbosity = 0 + # Link verbosity to distutils' (which uses 1 by default). + self.verbosity = self.distribution.verbose - 1 self.traceback = False def _guess_source_dir(self): @@ -185,7 +186,8 @@ class BuildDoc(Command): builder_target_dir, self.doctree_dir, builder, confoverrides, status_stream, freshenv=self.fresh_env, - warningiserror=self.warning_is_error) + warningiserror=self.warning_is_error, + verbosity=self.verbosity) app.build(force_all=self.all_files) if app.statuscode: raise DistutilsExecError( |