Skip to main content

A more powerful and flexible alternative to the standard getopt module

Project description

getargs is a Python module that implements a command line parser that Python scripts can use to parse their command line arguments in sys.argv. It is designed as a considerably more powerful and flexible alternative to the standard getopt module. While supporting all features provided by getopt, it also allows a command line option to take an arbitrary number of arguments and have defaults, permits switches (options without arguments) and options with arguments to be interleaved on the command line, allows the developer to specify the maximum and minimum number of arguments an option can take and allows the user to specify his oft-used options and arguments in a file.

Project details


Release history Release notifications | RSS feed

This version

2.0

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page