mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Shigeki Ohtsu
62422297f5
|
10 years ago | |
---|---|---|
.. | ||
debian | 10 years ago | |
AUTHORS | 10 years ago | |
COPYING | 10 years ago | |
ChangeLog | 10 years ago | |
MANIFEST.in | 10 years ago | |
Makefile | 10 years ago | |
NEWS | 10 years ago | |
PKG-INFO | 10 years ago | |
README | 10 years ago | |
gflags.py | 10 years ago | |
gflags2man.py | 10 years ago | |
gflags_validators.py | 10 years ago | |
setup.cfg | 10 years ago | |
setup.py | 10 years ago |
README
This repository contains a python implementation of the Google commandline
flags module.
GFlags defines a *distributed* command line system, replacing systems like
getopt(), optparse and manual argument processing. Rather than an application
having to define all flags in or near main(), each python module defines flags
that are useful to it. When one python module imports another, it gains
access to the other's flags.
It includes the ability to define flag types (boolean, float, interger, list),
autogeneration of help (in both human and machine readable format) and reading
arguments from a file. It also includes the ability to automatically generate
man pages from the help flags.
Documentation for implementation is at the top of gflags.py file.
To install the python module, run
python ./setup.py install
When you install this library, you also get a helper application,
gflags2man.py, installed into /usr/local/bin. You can run gflags2man.py to
create an instant man page, with all the commandl