mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix default for verbosity option (crashes on Py3).
This commit is contained in:
parent
4197144f96
commit
d44efd6254
@ -237,8 +237,7 @@ class Builder(object):
|
||||
First updates the environment, and then calls :meth:`write`.
|
||||
"""
|
||||
if summary:
|
||||
self.info(bold('building [%s]: ' % self.name), nonl=1)
|
||||
self.info(summary)
|
||||
self.info(bold('building [%s]' % self.name) + ': ' + summary)
|
||||
|
||||
updated_docnames = set()
|
||||
# while reading, collect all warnings from docutils
|
||||
|
@ -107,7 +107,7 @@ def main(argv):
|
||||
help='nit-picky mode, warn about all missing references')
|
||||
|
||||
group = parser.add_option_group('Console output options')
|
||||
group.add_option('-v', action='count', dest='verbosity',
|
||||
group.add_option('-v', action='count', dest='verbosity', default=0,
|
||||
help='increase verbosity (can be repeated)')
|
||||
group.add_option('-q', action='store_true', dest='quiet',
|
||||
help='no output on stdout, just warnings on stderr')
|
||||
|
Loading…
Reference in New Issue
Block a user