tupdating manpage, reformating help output. - surf - customized build of surf, … | |
git clone git://src.adamsgaard.dk/surf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit a05bcc653e3ee1ae856b3073707ffb5aec13940e | |
parent 62dc599a048a773265e094c3da420d0dc91a11e9 | |
Author: Enno Boland (tox) <[email protected]> | |
Date: Thu, 25 Mar 2010 00:05:37 +0100 | |
updating manpage, reformating help output. | |
Diffstat: | |
M surf.1 | 20 +++++++++++++++----- | |
M surf.c | 8 ++++---- | |
2 files changed, 19 insertions(+), 9 deletions(-) | |
--- | |
diff --git a/surf.1 b/surf.1 | |
t@@ -3,8 +3,12 @@ | |
surf \- simple webkit-based browser | |
.SH SYNOPSIS | |
.B surf | |
-.RB [ \-hvx ] | |
-.RB [ \-e xid ] | |
+.RB [-e\ xid] | |
+.RB [-i] | |
+.RB [-p] | |
+.RB [-s] | |
+.RB [-v] | |
+.RB [-x] | |
.RB "URI" | |
.SH DESCRIPTION | |
surf is a simple Web browser based on WebKit/GTK+. It is able | |
t@@ -14,10 +18,16 @@ one can point surf to another URI by setting its XProperti… | |
.SH OPTIONS | |
.TP | |
.B \-e xid | |
-reparents to window specified by xid. | |
+Reparents to window specified by xid. | |
.TP | |
-.B \-h | |
-Prints usage information to standard output, then exits. | |
+.B \-i | |
+Disable Images | |
+.TP | |
+.B \-p | |
+Disable Plugins | |
+.TP | |
+.B \-s | |
+Disable Javascript | |
.TP | |
.B \-v | |
Prints version information to standard output, then exits. | |
diff --git a/surf.c b/surf.c | |
t@@ -837,7 +837,7 @@ updatewinid(Client *c) { | |
void | |
usage(void) { | |
fputs("surf - simple browser\n", stderr); | |
- die("usage: surf [-e Window] [-x] [-i] [-p] [-s] [uri]\n"); | |
+ die("usage: surf [-e xid] [-i] [-p] [-s] [-v] [-x] [uri]\n"); | |
} | |
void | |
t@@ -880,9 +880,6 @@ main(int argc, char *argv[]) { | |
break; | |
} | |
switch(argv[i][1]) { | |
- case 'x': | |
- showxid = TRUE; | |
- break; | |
case 'e': | |
if(++i < argc) | |
embed = atoi(argv[i]); | |
t@@ -898,6 +895,9 @@ main(int argc, char *argv[]) { | |
case 's': | |
script = 0; | |
break; | |
+ case 'x': | |
+ showxid = TRUE; | |
+ break; | |
case 'v': | |
die("surf-"VERSION", © 2009 surf engineers, see LICEN… | |
default: |