aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp-pq
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-01-08 13:36:21 +0100
committerGuido Günther <agx@sigxcpu.org>2011-01-08 15:23:16 +0100
commit79ed2e0f088d0b374f5dbed12051770236268238 (patch)
tree96b8cb9e94425115759aaa97f324c2ac0c5c4a2b /gbp-pq
parentfc1d47d222e76e1c89b8c022f7f285bddbc17f96 (diff)
Use tristate option for --color=value
this allows true and false as alias for on and off.
Diffstat (limited to 'gbp-pq')
-rwxr-xr-xgbp-pq3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp-pq b/gbp-pq
index 7c35a998..a262398a 100755
--- a/gbp-pq
+++ b/gbp-pq
@@ -162,7 +162,8 @@ def main(argv):
parser.add_boolean_config_file_option(option_name="patch-numbers", dest="patch_numbers")
parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False,
help="verbose command execution")
- parser.add_config_file_option(option_name="color", dest="color")
+ parser.add_config_file_option(option_name="color", dest="color", type='tristate')
+
(options, args) = parser.parse_args(argv)
gbp.log.setup(options.color, options.verbose)