diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-10-31 21:25:14 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-10-31 21:25:14 +0100 |
commit | 1bfda445acda48a3df57414f1f5ce0a225da9588 (patch) | |
tree | 7d0c417380363bf6c8fc9fdcdb10798c0fbbead4 /surf.c | |
parent | 6aaaeb72675cf3db70a09649f86fd8b703f4d6b6 (diff) | |
download | surf-1bfda445acda48a3df57414f1f5ce0a225da9588.tar.gz surf-1bfda445acda48a3df57414f1f5ce0a225da9588.tar.bz2 surf-1bfda445acda48a3df57414f1f5ce0a225da9588.zip |
Adding a useragent parameter to surf.
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |