[hackers] [surf] updating manpage, reformating help output. || Enno Boland (tox)

From: <hg_AT_suckless.org>
Date: Wed, 24 Mar 2010 23:05:37 +0000 (UTC)

changeset: 187:0d21e6434a5d
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Thu Mar 25 00:05:37 2010 +0100
files: surf.1 surf.c
description:
updating manpage, reformating help output.

diff -r fa558d70aeef -r 0d21e6434a5d surf.1
--- a/surf.1 Wed Mar 24 23:55:41 2010 +0100
+++ b/surf.1 Thu Mar 25 00:05:37 2010 +0100
@@ -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
@@ -14,10 +18,16 @@
 .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 -r fa558d70aeef -r 0d21e6434a5d surf.c
--- a/surf.c Wed Mar 24 23:55:41 2010 +0100
+++ b/surf.c Thu Mar 25 00:05:37 2010 +0100
@@ -837,7 +837,7 @@
 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
@@ -880,9 +880,6 @@
                         break;
                 }
                 switch(argv[i][1]) {
- case 'x':
- showxid = TRUE;
- break;
                 case 'e':
                         if(++i < argc)
                                 embed = atoi(argv[i]);
@@ -898,6 +895,9 @@
                 case 's':
                         script = 0;
                         break;
+ case 'x':
+ showxid = TRUE;
+ break;
                 case 'v':
                         die("surf-"VERSION", © 2009 surf engineers, see LICENSE for details\n");
                 default:
Received on Wed Mar 24 2010 - 23:05:37 UTC

This archive was generated by hypermail 2.2.0 : Wed Mar 24 2010 - 23:12:07 UTC