0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/tools/gflags
Shigeki Ohtsu 62422297f5 tools: add python-gflags module
closure_linter needs the gflags module.

PR-URL: https://github.com/iojs/io.js/pull/464
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-01-16 09:13:23 +01:00
..
debian tools: add python-gflags module 2015-01-16 09:13:23 +01:00
AUTHORS tools: add python-gflags module 2015-01-16 09:13:23 +01:00
ChangeLog tools: add python-gflags module 2015-01-16 09:13:23 +01:00
COPYING tools: add python-gflags module 2015-01-16 09:13:23 +01:00
gflags2man.py tools: add python-gflags module 2015-01-16 09:13:23 +01:00
gflags_validators.py tools: add python-gflags module 2015-01-16 09:13:23 +01:00
gflags.py tools: add python-gflags module 2015-01-16 09:13:23 +01:00
Makefile tools: add python-gflags module 2015-01-16 09:13:23 +01:00
MANIFEST.in tools: add python-gflags module 2015-01-16 09:13:23 +01:00
NEWS tools: add python-gflags module 2015-01-16 09:13:23 +01:00
PKG-INFO tools: add python-gflags module 2015-01-16 09:13:23 +01:00
README tools: add python-gflags module 2015-01-16 09:13:23 +01:00
setup.cfg tools: add python-gflags module 2015-01-16 09:13:23 +01:00
setup.py tools: add python-gflags module 2015-01-16 09:13:23 +01:00

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 commandline flags and their docs, for
any C++ or python program you've written using the gflags library.