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

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page