aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-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 {