diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-11-13 11:50:34 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-11-25 17:51:13 +0100 |
commit | ebbe63562c9436cefd72d776b898d91960286b04 (patch) | |
tree | 8cf78880a70f9c0b39a339d8ad30ecd8b5b81fa1 /gbp/config.py | |
parent | 48c48c9e4d4200a4e50b25bcab95ce947c1dd932 (diff) | |
download | git-buildpackage-ebbe63562c9436cefd72d776b898d91960286b04.tar.gz git-buildpackage-ebbe63562c9436cefd72d776b898d91960286b04.tar.bz2 git-buildpackage-ebbe63562c9436cefd72d776b898d91960286b04.zip |
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/config.py')
-rw-r--r-- | gbp/config.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gbp/config.py b/gbp/config.py index 7f269d40..cec593b6 100644 --- a/gbp/config.py +++ b/gbp/config.py @@ -113,6 +113,7 @@ class GbpOptionParser(OptionParser): 'arch' : '', 'interactive' : 'True', 'color' : 'auto', + 'color-scheme' : '', 'customizations' : '', 'spawn-editor' : 'release', 'patch-numbers' : 'True', @@ -204,6 +205,11 @@ class GbpOptionParser(OptionParser): "Run command interactively, default is '%(interactive)s'", 'color': "Whether to use colored output, default is '%(color)s'", + 'color-scheme': + ("Colors to use in output (when color is enabled), format " + "is '<debug>:<info>:<warning>:<error>', e.g. " + "'cyan:34::'. Numerical values and color names are " + "accepted, empty fields indicate using the default."), 'spawn-editor': ("Whether to spawn an editor after adding the " "changelog entry, default is '%(spawn-editor)s'"), |