aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/scripts/clone.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-11-13 11:50:34 +0200
committerGuido Günther <agx@sigxcpu.org>2012-11-25 17:51:13 +0100
commitebbe63562c9436cefd72d776b898d91960286b04 (patch)
tree8cf78880a70f9c0b39a339d8ad30ecd8b5b81fa1 /gbp/scripts/clone.py
parent48c48c9e4d4200a4e50b25bcab95ce947c1dd932 (diff)
New configuration option for setting the output color scheme
Adds a new command line and config file option 'color-scheme' for selecting the colors used in log output. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/scripts/clone.py')
-rwxr-xr-xgbp/scripts/clone.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gbp/scripts/clone.py b/gbp/scripts/clone.py
index 65dbc20b..e7853abe 100755
--- a/gbp/scripts/clone.py
+++ b/gbp/scripts/clone.py
@@ -45,9 +45,11 @@ def parse_args (argv):
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", type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
(options, args) = parser.parse_args(argv)
- gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
return (options, args)