adding --random-agent and removing -a

This commit is contained in:
Miroslav Stampar
2011-02-02 14:51:12 +00:00
parent 2dae57a56d
commit 5f49e20cc8
4 changed files with 14 additions and 16 deletions

View File

@@ -78,9 +78,9 @@ def cmdLineParser():
request.add_option("--user-agent", dest="agent",
help="HTTP User-Agent header")
request.add_option("-a", dest="userAgentsFile",
help="Load a random HTTP User-Agent "
"header from file")
request.add_option("--random-agent", dest="randomAgent",
action="store_true", default=False,
help="Use randomly selected HTTP User-Agent header")
request.add_option("--referer", dest="referer",
help="HTTP Referer header")