On this page
  1. optparse.BadOptionError
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

optparse.BadOptionError

Up: optparse | Next: optparse.check_choice
Rel: optparse.check_choice, optparse.HelpFormatter, optparse.IndentedHelpFormatter, optparse.make_option
Ref: docs.python.org โ€” optparse.BadOptionError
Tags: #public #python3 #stdlib #optparse


Import

import optparse
from optparse import BadOptionError

Signature & Overview

optparse.BadOptionError(opt_str)

Raised if an invalid option is seen on the command line.

Methods & Attributes

Usage

import optparse

assert issubclass(optparse.BadOptionError, optparse.OptParseError)

Gotchas

REPL Inspect

from optparse import BadOptionError
help(BadOptionError)

Linked from

Related notes