]> arthur.barton.de Git - bup.git/commit
options.py: get the real tty width for word wrapping purposes.
authorAvery Pennarun <apenwarr@gmail.com>
Wed, 8 Sep 2010 08:13:09 +0000 (01:13 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 8 Sep 2010 08:14:43 +0000 (01:14 -0700)
commit4048d434a6d789effabca7296b19b11124ebf642
tree9c1c9e7e20afb4965a557787325eeed557887abd
parent195925232b47e2c607b95dfaabb46f884f1a1a5e
options.py: get the real tty width for word wrapping purposes.

Previously we just assumed it was 70 chars, which was safe enough, but not
as elegant as actually reading the real value and adjusting the word wrap of
the usage string accordingly.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
lib/bup/helpers.py
lib/bup/options.py
main.py