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