From e7c032338901274425b8d87a527d6aee57711745 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 24 Dec 2006 21:13:02 +0000 Subject: david - tweaked so numbers are at least accurate now... percentages actually work, but targets built as a result of a requires chain no longer count towards/ nor display the total count. also added a color view for fun --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index b7cf6e7..ebde3aa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,6 +33,8 @@ public: "Switch to percent view."); addParam('P', mkproc(Param::procViewPlain), "Switch to plain view."); + addParam("color", mkproc(Param::procColorPercent), + "Switch to colored percent view."); addParam('m', mkproc(Param::procViewMake), "Switch to 'make' style view."); addParam("cache", &sCache, @@ -77,6 +79,11 @@ public: sView = "make"; } + int procColorPercent( int argc, char *argv[] ) + { + sView = "colorpct"; + } + std::string sCache; std::string sFile; std::string sView; -- cgit v1.2.3