argparse

E431924

argparse is a Python module for parsing command-line arguments and options, enabling easy creation of user-friendly CLI interfaces.

All labels observed (3)

Label Occurrences
ArgumentParser 1
ArgumentParser.add_subparsers 1
argparse canonical 1

How this entity was disambiguated

Statements (48)

Predicate Object
instanceOf Python standard library module ⓘ
command-line argument parsing library ⓘ
defaultHelpOption --help ⓘ
-h ⓘ
defaultProgramName sys.argv[0] ⓘ
errorHandlingBehavior exits with non-zero status on parse errors ⓘ
prints error message to stderr ⓘ
hasDocumentation https://docs.python.org/3/library/argparse.html ⓘ
introducedInVersion Python 2.7 ⓘ
Python 3.2 ⓘ
license Python Software Foundation License ⓘ
partOf Python Standard Library ⓘ
programmingLanguage Python ⓘ
providesClass ArgumentError ⓘ
ArgumentParser ⓘ
linked to: argparse

ArgumentTypeError ⓘ
Namespace ⓘ
providesFunction ArgumentParser.add_argument ⓘ
ArgumentParser.add_subparsers ⓘ
linked to: argparse

ArgumentParser.parse_args ⓘ
ArgumentParser.print_help ⓘ
ArgumentParser.print_usage ⓘ
ArgumentParser.set_defaults ⓘ
FileType ⓘ
replacedModule optparse ⓘ
supportsFeature argument groups ⓘ
argument validation ⓘ
automatic help generation ⓘ
custom actions ⓘ
custom error messages ⓘ
default values ⓘ
file type arguments ⓘ
long options ⓘ
mutually exclusive argument groups ⓘ
optional arguments ⓘ
parsing from a list of strings ⓘ
parsing from sys.argv ⓘ
positional arguments ⓘ
short options ⓘ
sub-commands ⓘ
type conversion ⓘ
supportsPythonVersion Python 2.7 ⓘ
Python 3.x ⓘ
usedFor building command-line interfaces ⓘ
generating help messages ⓘ
generating usage messages ⓘ
parsing command-line arguments ⓘ
parsing command-line options ⓘ

How these facts were elicited

Referenced by (3)

Full triples — surface form annotated when it differs from this entity's canonical label.

argparse → providesClass → ArgumentParser ⓘ
linked to: argparse
argparse → providesFunction → ArgumentParser.add_subparsers ⓘ
linked to: argparse