X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=surf.c;h=07c689e57fe8a2a4efcc81ed9a426a244d8f26e4;hb=d44bfb2c314c7aa8c734dd1ecb5b3a0c7566a700;hp=3b291b548507c528d6265a54d2d9d9aaea6746e2;hpb=4ce3808684c5ea5d14eab0c3e24119784d2ae255;p=surf.git 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;