Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 386 Bytes

README.rst

File metadata and controls

28 lines (16 loc) · 386 Bytes

flag

A golang inspired simple flag library for python.

Installation

To install flag, simply:

$ pip install flag

Usage

import flag

num_workers = flag.int("workers", 10, "Number of worker threads")


if __name__ == '__main__':
    flag.parse()
    print("Num workers %d" % num_workers)