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

optparse.HelpFormatter

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


Import

import optparse
from optparse import HelpFormatter

Signature & Overview

optparse.HelpFormatter(indent_increment, max_help_position, width, short_first)

Abstract base class for formatting option help. OptionParser instances should use one of the HelpFormatter subclasses for formatting help; by default IndentedHelpFormatter is used.

Methods & Attributes

Usage

import optparse

assert issubclass(optparse.IndentedHelpFormatter, optparse.HelpFormatter)

Gotchas

REPL Inspect

from optparse import HelpFormatter
help(HelpFormatter)

Linked from

Related notes