CLI & Terminal

PyOptparse

Python stdlib module — optparse. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.check_builtin()Neutral
#
Signature
check_builtin(option, opt, value)

check_builtin function.

.check_choice()Neutral
#
Signature
check_choice(option, opt, value)

check_choice function.

.gettext()Neutral
#
Signature
gettext(message)

gettext function.

.ngettext()Neutral
#
Signature
ngettext(msgid1, msgid2, n)

ngettext function.

.AmbiguousOptionError()Neutral
#
Signature
AmbiguousOptionError(...)

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

.BadOptionError()Neutral
#
Signature
BadOptionError(...)

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

.HelpFormatter()Neutral
#
Signature
HelpFormatter(...)

Abstract base class for formatting option help. OptionParser

.IndentedHelpFormatter()Neutral
#
Signature
IndentedHelpFormatter(...)

Format help with indented section bodies.

.OptParseError()Neutral
#
Signature
OptParseError(...)

OptParseError class.

.Option()Neutral
#
Signature
Option(...)

Instance attributes:

Fully-Qualified Names

FQNField
optparsefqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import optparse