How to Solve NameError: name 'optparse' is not defined
Solution: Import the 'optparse' module
# Add the following line to the top of your code
import optparse
For more information:
Python optparse
# Add the following line to the top of your code
import optparse
For more information:
Python optparse