Add docstring for new argument

This commit is contained in:
George Edward Bulmer 2018-02-06 18:53:45 +00:00
parent 9c47128799
commit 5ceecc2b04

View File

@ -1506,7 +1506,10 @@ class CommandDispatcher:
@cmdutils.register(instance='command-dispatcher', scope='window') @cmdutils.register(instance='command-dispatcher', scope='window')
def view_source(self, edit=False): def view_source(self, edit=False):
"""Show the source of the current page in a new tab.""" """Show the source of the current page in a new tab.
Args:
edit: Open source in editor instead of tab."""
tab = self._current_widget() tab = self._current_widget()
try: try:
current_url = self._current_url() current_url = self._current_url()