]> arthur.barton.de Git - bup.git/commit
options.py: better support for explicit no-* options.
authorAvery Pennarun <apenwarr@gmail.com>
Wed, 8 Sep 2010 07:31:19 +0000 (00:31 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 8 Sep 2010 07:33:28 +0000 (00:33 -0700)
commit2503f159801da231a3bcb57803d34975fe0efd4e
tree67986879fc200370c7b368fab51ab5e15bc1245f
parente3d646243627020f5b99e6d7a0b78e2584b422d1
options.py: better support for explicit no-* options.

If a declared option name starts with no-xxx, then the 'xxx' option starts
off set to True by default, so that no-xxx is False by default, so that
passing --no-xxx as an option will have the desired effect of setting
--no-xxx=True (and thus --xxx=False).

Previously, trying to list a --no-xxx option in the argument list would
trigger an assertion failure.

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