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

optparse.make_option

Prev: optparse.IndentedHelpFormatter | Up: optparse | Next: optparse.Option
Rel: optparse.BadOptionError, optparse.check_choice, optparse.HelpFormatter, optparse.IndentedHelpFormatter
Ref: docs.python.org — optparse.make_option
Tags: #public #python3 #stdlib #optparse


Import

import optparse
from optparse import make_option

Signature & Overview

optparse.make_option(*opts, **attrs)

Instance attributes: _short_opts : [string] _long_opts : [string]

Methods & Attributes

Usage

import optparse

assert optparse.make_option is optparse.Option

Gotchas

REPL Inspect

from optparse import make_option
help(make_option)

Linked from

Related notes