From 5ad66c29e19e5d63df65bb22e02c182945d9790e Mon Sep 17 00:00:00 2001 From: Ismail S Date: Fri, 8 Jul 2016 15:38:58 +0100 Subject: [PATCH] Update docstring --- qutebrowser/browser/commands.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 326a06e55..9f5ee479d 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1117,7 +1117,16 @@ class CommandDispatcher: @cmdutils.register(instance='command-dispatcher', scope='window') def bookmark_add(self, url=None, title=None): - """Save the current page as a bookmark, or a specific url.""" + """Save the current page as a bookmark, or a specific url. + + If no url and title are provided, then save the current page as a + bookmark. + If a url and title have been provided, then save the given url as + a bookmark with the provided title. + + Args: + url: url to save as a bookmark. If None, use url of current page. + title: title of the new bookmark.""" if url and not title: raise cmdexc.CommandError('Title must be provided if url has ' 'been provided')