I\'m trying to write a documentation for my project in sphinx and whenever sphinx encounters OptionParser in my module it gives me:
sphinx-build: error: no s
This did the trick for me, add this at the bottom.
if __name__ == '__main__': parser = optparse.OptionParser()