X-Git-Url: https://git.danieliu.xyz/?p=surf.git;a=blobdiff_plain;f=surf.c;h=07c689e57fe8a2a4efcc81ed9a426a244d8f26e4;hp=3b291b548507c528d6265a54d2d9d9aaea6746e2;hb=1bfda445acda48a3df57414f1f5ce0a225da9588;hpb=6aaaeb72675cf3db70a09649f86fd8b703f4d6b6 diff --git a/surf.c b/surf.c index 3b291b5..07c689e 100644 --- a/surf.c +++ b/surf.c @@ -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;