In my tests default value is correctly used and if we provide explicitly
a --with it will comply with the store_true and if we provide --without
then it will comply with the store_false
Change-Id: I820a7f2f08c51ec23b694bce7009c3891d4ab8ef
Signed-off-by: Matthieu Patou <mat@matws.net>
with_val = "--%s-%s" % (with_name, option)
without_val = "--%s-%s" % (without_name, option)
- #FIXME: This is broken and will always default to "default" no matter if
- # --with or --without is chosen.
opt.add_option(with_val, help=help, action="store_true", dest=dest,
default=default)
opt.add_option(without_val, help=SUPPRESS_HELP, action="store_false",