]> arthur.barton.de Git - bup.git/commit
options.py: handle optspecs that include inline square brackets.
authorAvery Pennarun <apenwarr@gmail.com>
Wed, 8 Sep 2010 07:37:44 +0000 (00:37 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 8 Sep 2010 07:37:44 +0000 (00:37 -0700)
commitef0bbbb266c2f6f058065556b01e3ccb53c8dd44
treea5d1f910d8fe6e1e0b5e8eb1c34b93b3c665d89b
parent2503f159801da231a3bcb57803d34975fe0efd4e
options.py: handle optspecs that include inline square brackets.

We recently made it so if the last thing on an options line was [defval],
then the value in brackets became the default for that option.  However, we
inadvertently matched *any* bracketed value on that line, not just the one
at the end of the line, which basically prevents us from using square
brackets anywhere on the line.  That's no fun.

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