• Home
Name Date Size #Lines LOC

..--

AUTHORSD03-May-202432 31

COPYINGD03-May-20241.4 KiB2925

ChangeLogD03-May-20242.4 KiB6347

MANIFEST.inD03-May-2024388 2019

MakefileD03-May-20241.5 KiB7035

NEWSD03-May-20243.2 KiB7958

READMED03-May-20241.1 KiB2418

README.chromiumD03-May-2024952 2622

gflags.pyD03-May-2024101.8 KiB2,8631,995

gflags2man.pyD03-May-202418.4 KiB545408

gflags_validators.pyD03-May-20246.8 KiB188121

setup.pyD03-May-20241.9 KiB4512

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