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

optparse.OptionValueError

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


Import

import optparse
from optparse import OptionValueError

Signature & Overview

optparse.OptionValueError(msg)

Raised if an invalid option value is encountered on the command line.

Methods & Attributes

Usage

import optparse

assert issubclass(optparse.OptionValueError, optparse.OptParseError)

Gotchas

REPL Inspect

from optparse import OptionValueError
help(OptionValueError)

Linked from

Related notes