aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorDavid <david@xagasoft.com>2006-11-03 21:12:51 +0000
committerDavid <david@xagasoft.com>2006-11-03 21:12:51 +0000
commit863a1f4ce1d7b70f9a73edb16b0de1c753087152 (patch)
tree7b344101a1d8bb5d49ffd2a16b2782612a9b9471 /src/main.cpp
parente270362ceacad49a72cf46394fcb5f010acc41f9 (diff)
downloadbuild-863a1f4ce1d7b70f9a73edb16b0de1c753087152.tar.gz
build-863a1f4ce1d7b70f9a73edb16b0de1c753087152.tar.bz2
build-863a1f4ce1d7b70f9a73edb16b0de1c753087152.tar.xz
build-863a1f4ce1d7b70f9a73edb16b0de1c753087152.zip
david - percent viewer.
Diffstat (limited to '')
-rw-r--r--src/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 06a1ff6..b7cf6e7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -15,7 +15,7 @@ public:
15 sCache(".build.cache"), 15 sCache(".build.cache"),
16 bDebug( false ), 16 bDebug( false ),
17 bPostDebug( false ), 17 bPostDebug( false ),
18 sView("plain"), 18 sView("plainpct"),
19 bInfo( false ), 19 bInfo( false ),
20 bCleanMode( false ), 20 bCleanMode( false ),
21 sDir("") 21 sDir("")
@@ -31,6 +31,8 @@ public:
31 "Clean instead of checking the given action.", NULL, "true" ); 31 "Clean instead of checking the given action.", NULL, "true" );
32 addParam('p', mkproc(Param::procViewPercent), 32 addParam('p', mkproc(Param::procViewPercent),
33 "Switch to percent view."); 33 "Switch to percent view.");
34 addParam('P', mkproc(Param::procViewPlain),
35 "Switch to plain view.");
34 addParam('m', mkproc(Param::procViewMake), 36 addParam('m', mkproc(Param::procViewMake),
35 "Switch to 'make' style view."); 37 "Switch to 'make' style view.");
36 addParam("cache", &sCache, 38 addParam("cache", &sCache,
@@ -64,6 +66,11 @@ public:
64 { 66 {
65 sView = "percent"; 67 sView = "percent";
66 } 68 }
69
70 int procViewPlain( int argc, char *argv[] )
71 {
72 sView = "plain";
73 }
67 74
68 int procViewMake( int argc, char *argv[] ) 75 int procViewMake( int argc, char *argv[] )
69 { 76 {