CLI & Terminal

PyArgparse

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

Other Methods

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

ngettext function.

.Action()Neutral
#
Signature
Action(...)

Information about how to convert command line strings to Python objects.

.ArgumentDefaultsHelpFormatter()Neutral
#
Signature
ArgumentDefaultsHelpFormatter(...)

Help message formatter which adds default values to argument help.

.ArgumentError()Neutral
#
Signature
ArgumentError(...)

An error from creating or using an argument (optional or positional).

.ArgumentParser()Neutral
#
Signature
ArgumentParser(...)

Object for parsing command line strings into Python objects.

.ArgumentTypeError()Neutral
#
Signature
ArgumentTypeError(...)

An error from trying to convert a command line string to a type.

.BooleanOptionalAction()Neutral
#
Signature
BooleanOptionalAction(...)

BooleanOptionalAction class.

.FileType()Neutral
#
Signature
FileType(...)

Factory for creating file object types

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

Formatter for generating usage messages and argument help strings.

.MetavarTypeHelpFormatter()Neutral
#
Signature
MetavarTypeHelpFormatter(...)

Help message formatter which uses the argument 'type' as the default

Fully-Qualified Names

FQNField
argparsefqns[0]

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

Import

rule.py
import argparse