From b332f61f0d79b4285e0d872f79d99e4046ef8d4b Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Sat, 27 Dec 2008 12:46:51 +0000 Subject: 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. --- src/debug.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/debug.c') 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 -- cgit v1.2.3