Это помогло мне, добавьте это внизу.

аюсь написать документацию для моего проекта в sphinx, и всякий раз, когда sphinx встречает OptionParser в моем модуле, он дает мне:

sphinx-build: error: no such option: -b

Я подумал, что это невозможно, поэтому я написал простой модуль, чтобы проверить это:

from optparse import OptionParser

"""some comment here"""

parser = OptionParser(conflict_handler='resolve')
parser.add_option('', '--force', action='store_true', dest='force', default=False, help='gqdel will skip asking questions, and delete them all.');
parser.add_option('', '--verbose', action='store_true', dest='verbose', default=False, help='Report additional information from gqdel')

(options, args) = parser.parse_args()

"""and here"""

print "foo"

И это дает мне ту же ошибку. Мой первый выглядит так:

some title
==========

.. automodule:: test
   :members:

Ответы на вопрос(2)

Ваш ответ на вопрос