]> arthur.barton.de Git - bup.git/commit
options parser: automatically convert strings to ints when appropriate.
authorAvery Pennarun <apenwarr@gmail.com>
Tue, 12 Jan 2010 03:59:46 +0000 (22:59 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 12 Jan 2010 03:59:46 +0000 (22:59 -0500)
commit4a641e7ec79a90c450be05d65a7410a90a6e5ad9
tree56bf97b2e375ce06a3e86c6286b7aa4fa46965e7
parent5ae2d5cf3a747d3e5d9b9fd933bf704433391b02
options parser: automatically convert strings to ints when appropriate.

If the given parameter is exactly an int (ie. str(int(v)) == v) then convert
it to an int automatically.  This helps avoid weird bugs in apps using the
option parser.
options.py
t/toptions.py