Adding a useragent parameter to surf.

This commit is contained in:
Christoph Lohmann 2012-10-31 21:25:14 +01:00
commit 1bfda445ac
2 changed files with 8 additions and 1 deletions

5
surf.c
View file

@ -919,7 +919,7 @@ void
usage(void) {
fputs("surf - simple browser\n", stderr);
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
@ -967,6 +967,9 @@ main(int argc, char *argv[]) {
case 't':
stylefile = EARGF(usage());
break;
case 'u':
useragent = EARGF(usage());
break;
case 'x':
showxid = TRUE;
break;