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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyflags-0.1.tar.gz
.
File metadata
- Download URL: pyflags-0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4f79d2ab773a8c279c496cf035f63727f3098f1d0f9418a4af586ccebe53dbe |
|
MD5 | 01f92f9c75d2745d4d89260539921f53 |
|
BLAKE2b-256 | b6d796bae3e472a5b1beb781092994188ccc8446a022b5fab4f5a356331e0c35 |