CLI & Terminal

PyGetopt

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

Other Methods

.do_longs()Neutral
#
Signature
do_longs(opts, opt, longopts, args)

do_longs function.

.do_shorts()Neutral
#
Signature
do_shorts(opts, optstring, shortopts, args)

do_shorts function.

.getopt()Neutral
#
Signature
getopt(args, shortopts, longopts)

getopt(args, options[, long_options]) -> opts, args

.gnu_getopt()Neutral
#
Signature
gnu_getopt(args, shortopts, longopts)

getopt(args, options[, long_options]) -> opts, args

.long_has_args()Neutral
#
Signature
long_has_args(opt, longopts)

long_has_args function.

.short_has_arg()Neutral
#
Signature
short_has_arg(opt, shortopts)

short_has_arg function.

.GetoptError()Neutral
#
Signature
GetoptError(...)

GetoptError class.

.error()Neutral
#
Signature
error(...)

error class.

Fully-Qualified Names

FQNField
getoptfqns[0]

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

Import

rule.py
import getopt