Adding a useragent parameter to surf.
This commit is contained in:
parent
6aaaeb7267
commit
1bfda445ac
2 changed files with 8 additions and 1 deletions
4
surf.1
4
surf.1
|
@ -10,6 +10,7 @@ surf \- simple webkit-based browser
|
||||||
.RB [-r\ scriptfile]
|
.RB [-r\ scriptfile]
|
||||||
.RB [-s]
|
.RB [-s]
|
||||||
.RB [-t\ stylefile]
|
.RB [-t\ stylefile]
|
||||||
|
.RB [-u\ useragent]
|
||||||
.RB [-v]
|
.RB [-v]
|
||||||
.RB [-x]
|
.RB [-x]
|
||||||
.RB "URI"
|
.RB "URI"
|
||||||
|
@ -41,6 +42,9 @@ Disable Javascript
|
||||||
.B \-t stylefile
|
.B \-t stylefile
|
||||||
Specify the user stylefile.
|
Specify the user stylefile.
|
||||||
.TP
|
.TP
|
||||||
|
.B \-u useragent
|
||||||
|
Specify the user stylefile.
|
||||||
|
.TP
|
||||||
.B \-v
|
.B \-v
|
||||||
Prints version information to standard output, then exits.
|
Prints version information to standard output, then exits.
|
||||||
.TP
|
.TP
|
||||||
|
|
5
surf.c
5
surf.c
|
@ -919,7 +919,7 @@ void
|
||||||
usage(void) {
|
usage(void) {
|
||||||
fputs("surf - simple browser\n", stderr);
|
fputs("surf - simple browser\n", stderr);
|
||||||
die("usage: surf [-c cookiefile] [-e xid] [-i] [-p] [-r scriptfile]"
|
die("usage: surf [-c cookiefile] [-e xid] [-i] [-p] [-r scriptfile]"
|
||||||
" [-s] [-t stylefile] [-v] [-x] [uri]\n");
|
" [-s] [-t stylefile] [-u useragent] [-v] [-x] [uri]\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -967,6 +967,9 @@ main(int argc, char *argv[]) {
|
||||||
case 't':
|
case 't':
|
||||||
stylefile = EARGF(usage());
|
stylefile = EARGF(usage());
|
||||||
break;
|
break;
|
||||||
|
case 'u':
|
||||||
|
useragent = EARGF(usage());
|
||||||
|
break;
|
||||||
case 'x':
|
case 'x':
|
||||||
showxid = TRUE;
|
showxid = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue