We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
scrapy view <url> raise exc in v1.3.0
````
(py35) wingyiu@mbp101:~$scrapy view http://www.scrapy.org
2017-01-19 22:13:54 [scrapy.utils.log] INFO: Scrapy 1.3.0 started (bot: scrapybot)
2017-01-19 22:13:54 [scrapy.utils.log] INFO: Overridden settings: {}
Traceback (most recent call last):
  File "/Users/user/venv/py35/bin/scrapy", line 11, in <module>
    sys.exit(execute())
  File "/Users/user/venv/py35/lib/python3.5/site-packages/scrapy/cmdline.py", line 142, in execute
    _run_print_help(parser, _run_command, cmd, args, opts)
  File "/Users/user/venv/py35/lib/python3.5/site-packages/scrapy/cmdline.py", line 88, in _run_print_help
    func(*a, **kw)
  File "/Users/user/venv/py35/lib/python3.5/site-packages/scrapy/cmdline.py", line 149, in _run_command
    cmd.run(args, opts)
  File "/Users/user/venv/py35/lib/python3.5/site-packages/scrapy/commands/fetch.py", line 58, in run
    if not opts.no_redirect:
AttributeError: 'Values' object has no attribute 'no_redirect'
````


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `scrapy/commands/view.py`
Content:
```
1 from scrapy.commands import fetch, ScrapyCommand
2 from scrapy.utils.response import open_in_browser
3 
4 class Command(fetch.Command):
5 
6     def short_desc(self):
7         return "Open URL in browser, as seen by Scrapy"
8 
9     def long_desc(self):
10         return "Fetch a URL using the Scrapy downloader and show its " \
11             "contents in a browser"
12 
13     def add_options(self, parser):
14         ScrapyCommand.add_options(self, parser)
15         parser.add_option("--spider", dest="spider",
16             help="use this spider")
17 
18     def _print_response(self, response, opts):
19         open_in_browser(response)
20
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/scrapy/commands/view.py b/scrapy/commands/view.py
--- a/scrapy/commands/view.py
+++ b/scrapy/commands/view.py
@@ -11,9 +11,8 @@
             "contents in a browser"
 
     def add_options(self, parser):
-        ScrapyCommand.add_options(self, parser)
-        parser.add_option("--spider", dest="spider",
-            help="use this spider")
+        super(Command, self).add_options(parser)
+        parser.remove_option("--headers")
 
     def _print_response(self, response, opts):
         open_in_browser(response)

{"golden_diff": "diff --git a/scrapy/commands/view.py b/scrapy/commands/view.py\n--- a/scrapy/commands/view.py\n+++ b/scrapy/commands/view.py\n@@ -11,9 +11,8 @@\n             \"contents in a browser\"\n \n     def add_options(self, parser):\n-        ScrapyCommand.add_options(self, parser)\n-        parser.add_option(\"--spider\", dest=\"spider\",\n-            help=\"use this spider\")\n+        super(Command, self).add_options(parser)\n+        parser.remove_option(\"--headers\")\n \n     def _print_response(self, response, opts):\n         open_in_browser(response)\n", "issue": "scrapy view <url> raise exc in v1.3.0\n````\r\n(py35) wingyiu@mbp101:~$scrapy view http://www.scrapy.org\r\n2017-01-19 22:13:54 [scrapy.utils.log] INFO: Scrapy 1.3.0 started (bot: scrapybot)\r\n2017-01-19 22:13:54 [scrapy.utils.log] INFO: Overridden settings: {}\r\nTraceback (most recent call last):\r\n  File \"/Users/user/venv/py35/bin/scrapy\", line 11, in <module>\r\n    sys.exit(execute())\r\n  File \"/Users/user/venv/py35/lib/python3.5/site-packages/scrapy/cmdline.py\", line 142, in execute\r\n    _run_print_help(parser, _run_command, cmd, args, opts)\r\n  File \"/Users/user/venv/py35/lib/python3.5/site-packages/scrapy/cmdline.py\", line 88, in _run_print_help\r\n    func(*a, **kw)\r\n  File \"/Users/user/venv/py35/lib/python3.5/site-packages/scrapy/cmdline.py\", line 149, in _run_command\r\n    cmd.run(args, opts)\r\n  File \"/Users/user/venv/py35/lib/python3.5/site-packages/scrapy/commands/fetch.py\", line 58, in run\r\n    if not opts.no_redirect:\r\nAttributeError: 'Values' object has no attribute 'no_redirect'\r\n````\r\n\n", "before_files": [{"content": "from scrapy.commands import fetch, ScrapyCommand\nfrom scrapy.utils.response import open_in_browser\n\nclass Command(fetch.Command):\n\n    def short_desc(self):\n        return \"Open URL in browser, as seen by Scrapy\"\n\n    def long_desc(self):\n        return \"Fetch a URL using the Scrapy downloader and show its \" \\\n            \"contents in a browser\"\n\n    def add_options(self, parser):\n        ScrapyCommand.add_options(self, parser)\n        parser.add_option(\"--spider\", dest=\"spider\",\n            help=\"use this spider\")\n\n    def _print_response(self, response, opts):\n        open_in_browser(response)\n", "path": "scrapy/commands/view.py"}], "after_files": [{"content": "from scrapy.commands import fetch, ScrapyCommand\nfrom scrapy.utils.response import open_in_browser\n\nclass Command(fetch.Command):\n\n    def short_desc(self):\n        return \"Open URL in browser, as seen by Scrapy\"\n\n    def long_desc(self):\n        return \"Fetch a URL using the Scrapy downloader and show its \" \\\n            \"contents in a browser\"\n\n    def add_options(self, parser):\n        super(Command, self).add_options(parser)\n        parser.remove_option(\"--headers\")\n\n    def _print_response(self, response, opts):\n        open_in_browser(response)\n", "path": "scrapy/commands/view.py"}]}