• Home
  • History
  • Annotate
  • only in /external/chromium-trace/catapult/third_party/gsutil/third_party/python-gflags/
NameDateSize

..23-Aug-20164 KiB

AUTHORS23-Aug-201632

ChangeLog23-Aug-20162.4 KiB

COPYING23-Aug-20161.4 KiB

debian/23-Aug-20164 KiB

gflags.py23-Aug-2016101.8 KiB

gflags2man.py23-Aug-201618.4 KiB

gflags_validators.py23-Aug-20166.8 KiB

Makefile23-Aug-20161.5 KiB

MANIFEST.in23-Aug-2016388

NEWS23-Aug-20163.2 KiB

README23-Aug-20161.1 KiB

setup.py23-Aug-20161.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