• Home
  • History
  • Annotate
  • only in /external/chromium_org/third_party/python_gflags/
NameDateSize

..12-Mar-20154 KiB

AUTHORS12-Mar-201532

ChangeLog12-Mar-20152.4 KiB

COPYING12-Mar-20151.4 KiB

gflags.py12-Mar-2015101.8 KiB

gflags2man.py12-Mar-201518.4 KiB

gflags_validators.py12-Mar-20156.8 KiB

Makefile12-Mar-20151.5 KiB

MANIFEST.in12-Mar-2015388

NEWS12-Mar-20153.2 KiB

OWNERS12-Mar-201544

README12-Mar-20151.1 KiB

README.chromium12-Mar-2015976

setup.py12-Mar-20151.9 KiB

README

1This repository contains a python implementation of the Google commandline
2flags module.
3
4 GFlags defines a *distributed* command line system, replacing systems like
5 getopt(), optparse and manual argument processing. Rather than an application
6 having to define all flags in or near main(), each python module defines flags
7 that are useful to it.  When one python module imports another, it gains
8 access to the other's flags.
9
10 It includes the ability to define flag types (boolean, float, interger, list),
11 autogeneration of help (in both human and machine readable format) and reading
12 arguments from a file. It also includes the ability to automatically generate
13 man pages from the help flags.
14
15Documentation for implementation is at the top of gflags.py file.
16
17To install the python module, run
18   python ./setup.py install
19
20When you install this library, you also get a helper application,
21gflags2man.py, installed into /usr/local/bin.  You can run gflags2man.py to
22create an instant man page, with all the commandline flags and their docs, for
23any C++ or python program you've written using the gflags library.
24

README.chromium

1Name: python-gflags
2URL: http://code.google.com/p/python-gflags/
3Version: 2.0
4Date: 15 Feb 2012
5Revision: 41
6License: BSD 3-Clause License
7License File: NOT_SHIPPED
8Security Critical: no
9
10Description:
11  This project is the python equivalent of google-gflags, a Google commandline
12  flag implementation for C++. It is intended to be used in situations where a
13  project wants to mimic the command-line flag handling of a C++ app that uses
14  google-gflags, or for a Python app that, via swig or some other means, is
15  linked with a C++ app that uses google-gflags.
16
17  The gflags package contains a library that implements commandline flags
18  processing. As such it's a replacement for getopt(). It has increased
19  flexibility, including built-in support for Python types, and the ability to
20  define flags in the source file in which they're used. (This last is its
21  major difference from OptParse.)
22
23Local modifications:
24  Removed tests/
25  Removed debian/
26  Added OWNERS file
27