summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2013-05-21 21:30:00 +0200
committerChristoph Lohmann <20h@r-36.net>2013-05-21 21:30:00 +0200
commitc234737bea41e605310a7372adf8af8036cf2212 (patch)
tree840aaba3013eaa87e85c6fa4c54b5ccf95eb0e36 /surf.c
parent4f45ae9307050397dbeb18ea00121aa82c867685 (diff)
downloadsurf-c234737bea41e605310a7372adf8af8036cf2212.tar.gz
surf-c234737bea41e605310a7372adf8af8036cf2212.tar.bz2
surf-c234737bea41e605310a7372adf8af8036cf2212.zip
Adding a common way to enable and disable features.
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/surf.c b/surf.c
index da84e1c..53dda18 100644
--- a/surf.c
+++ b/surf.c
@@ -2,6 +2,7 @@
*
* To understand surf, start reading main().
*/
+
#include <signal.h>
#include <X11/X.h>
#include <X11/Xatom.h>
@@ -1289,6 +1290,9 @@ main(int argc, char *argv[]) {
case 'b':
enablescrollbars = 0;
break;
+ case 'B':
+ enablescrollbars = 1;
+ break;
case 'c':
cookiefile = EARGF(usage());
break;
@@ -1298,24 +1302,42 @@ main(int argc, char *argv[]) {
case 'g':
allowgeolocation = 0;
break;
+ case 'G':
+ allowgeolocation = 1;
+ break;
case 'i':
loadimages = 0;
break;
+ case 'I':
+ loadimages = 1;
+ break;
case 'k':
+ kioskmode = 0;
+ break;
+ case 'K':
kioskmode = 1;
break;
case 'n':
enableinspector = 0;
break;
+ case 'N':
+ enableinspector = 1;
+ break;
case 'p':
enableplugins = 0;
break;
+ case 'P':
+ enableplugins = 1;
+ break;
case 'r':
scriptfile = EARGF(usage());
break;
case 's':
enablescripts = 0;
break;
+ case 'S':
+ enablescripts = 1;
+ break;
case 't':
stylefile = EARGF(usage());
break;