• Home
  • History
  • Annotate
  • only in /external/chromium-trace/trace-viewer/third_party/python_gflags/
NameDateSize

..11-Jul-20144 KiB

AUTHORS11-Jul-201432

ChangeLog11-Jul-20142.4 KiB

COPYING11-Jul-20141.4 KiB

gflags.py11-Jul-2014101.8 KiB

gflags2man.py11-Jul-201418.4 KiB

gflags_validators.py11-Jul-20146.8 KiB

Makefile11-Jul-20141.5 KiB

MANIFEST.in11-Jul-2014388

NEWS11-Jul-20143.2 KiB

README11-Jul-20141.1 KiB

README.chromium11-Jul-2014952

setup.py11-Jul-20141.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: COPYING
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