summaryrefslogtreecommitdiffstats
path: root/src/debug.c
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2008-12-27 12:46:51 +0000
committerHolger Freyther <zecke@selfish.org>2008-12-27 12:46:51 +0000
commitb332f61f0d79b4285e0d872f79d99e4046ef8d4b (patch)
tree7d7079b605a60d563e32f75f5d940424a33116dd /src/debug.c
parent5ee72eeeb1d513c5702c72e19ba6becd47d02158 (diff)
Use getopt in the bsc_hack to parse options
Current options include a draft of the help screen, an option to disable the colors and to specify the debug categories to show.
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c
index c1bebcab1..27fdb9ceb 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -53,6 +53,11 @@ static const struct debug_info debug_info[] = {
static int use_color = 1;
+void debug_use_color(int color)
+{
+ use_color = color;
+}
+
/*
* Parse the category mask.
* category1:category2:category3