OptionParser.OptionParserException

Overview

Base exception for all OptionParser exceptions.

It will be raised, however, in two primary situations

  1. Invalid use of the Option class, for example, you attempt to add a new option but do not give a short or long option name.
  2. If the OptionParser has the ExtrasRequired parameter set and that value has not been met by the user.