diff options
| author | David <david@xagasoft.com> | 2006-12-24 21:13:02 +0000 |
|---|---|---|
| committer | David <david@xagasoft.com> | 2006-12-24 21:13:02 +0000 |
| commit | e7c032338901274425b8d87a527d6aee57711745 (patch) | |
| tree | bbaba25f75fd417497313799db13e15df688f69f /src/main.cpp | |
| parent | b792e9f4b32013c258fd78bc3271dd6730fccda3 (diff) | |
| download | build-e7c032338901274425b8d87a527d6aee57711745.tar.gz build-e7c032338901274425b8d87a527d6aee57711745.tar.bz2 build-e7c032338901274425b8d87a527d6aee57711745.tar.xz build-e7c032338901274425b8d87a527d6aee57711745.zip | |
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
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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: | |||
| 33 | "Switch to percent view."); | 33 | "Switch to percent view."); |
| 34 | addParam('P', mkproc(Param::procViewPlain), | 34 | addParam('P', mkproc(Param::procViewPlain), |
| 35 | "Switch to plain view."); | 35 | "Switch to plain view."); |
| 36 | addParam("color", mkproc(Param::procColorPercent), | ||
| 37 | "Switch to colored percent view."); | ||
| 36 | addParam('m', mkproc(Param::procViewMake), | 38 | addParam('m', mkproc(Param::procViewMake), |
| 37 | "Switch to 'make' style view."); | 39 | "Switch to 'make' style view."); |
| 38 | addParam("cache", &sCache, | 40 | addParam("cache", &sCache, |
| @@ -77,6 +79,11 @@ public: | |||
| 77 | sView = "make"; | 79 | sView = "make"; |
| 78 | } | 80 | } |
| 79 | 81 | ||
| 82 | int procColorPercent( int argc, char *argv[] ) | ||
| 83 | { | ||
| 84 | sView = "colorpct"; | ||
| 85 | } | ||
| 86 | |||
| 80 | std::string sCache; | 87 | std::string sCache; |
| 81 | std::string sFile; | 88 | std::string sFile; |
| 82 | std::string sView; | 89 | std::string sView; |
