diff options
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3ea4411..c1df482 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -1,6 +1,7 @@ | |||
1 | #include "builder.h" | 1 | #include "builder.h" |
2 | #include "viewerplain.h" | 2 | #include "viewerplain.h" |
3 | #include "viewerpercent.h" | 3 | #include "viewerpercent.h" |
4 | #include "viewermake.h" | ||
4 | #include "paramproc.h" | 5 | #include "paramproc.h" |
5 | #include "staticstring.h" | 6 | #include "staticstring.h" |
6 | 7 | ||
@@ -17,6 +18,8 @@ public: | |||
17 | "Set the input script, default: build.conf"); | 18 | "Set the input script, default: build.conf"); |
18 | addParam('p', mkproc(Param::procViewPercent), | 19 | addParam('p', mkproc(Param::procViewPercent), |
19 | "Switch to percent view."); | 20 | "Switch to percent view."); |
21 | addParam('m', mkproc(Param::procViewMake), | ||
22 | "Switch to 'make' style view."); | ||
20 | addParam("cache", &sCache, | 23 | addParam("cache", &sCache, |
21 | "Set an alternative cache file." ); | 24 | "Set an alternative cache file." ); |
22 | addParam('d', &bDebug, | 25 | addParam('d', &bDebug, |
@@ -48,6 +51,12 @@ public: | |||
48 | pViewer = new ViewerPercent; | 51 | pViewer = new ViewerPercent; |
49 | } | 52 | } |
50 | 53 | ||
54 | int procViewMake( int argc, char *argv[] ) | ||
55 | { | ||
56 | delete pViewer; | ||
57 | pViewer = new ViewerMake; | ||
58 | } | ||
59 | |||
51 | std::string sCache; | 60 | std::string sCache; |
52 | std::string sFile; | 61 | std::string sFile; |
53 | StaticString sAction; | 62 | StaticString sAction; |