This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Project Description

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

Why?

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.

Example

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

Release History

Release History

This version
History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyflags-0.1.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Jun 22, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting