Skip to main content

A simple, common-sense, single-letter command-line parser

Project description

flags is a Python flag parsing library for humans, not robots.


Argparse is complicated. Plac remedies most of its issues. However, sometimes you just need a really simple POSIX-style flag parser. You can use getopt, but it makes you write all the help screens yourself, which can easily go out-of-sync with the program source. flags aims at filling this void by providing a simple, practical API that’s truly easy to use and doesn’t suck.


Since README examples always go out of sync with the source, included at examples/ is flags parser for POSIX grep’s arguments.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyflags-0.1.tar.gz (3.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page