1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 17:17:59 +01:00

Add helpInfo to the command-line handler, not that it makes a difference.

This commit is contained in:
Kris Maglione
2010-11-12 15:33:08 -05:00
parent 1e87732602
commit 56b3700fb3
2 changed files with 10 additions and 10 deletions

View File

@@ -39,7 +39,9 @@ CommandLineHandler.prototype = {
catch (e) {
dump(name + ": option '-" + name + "' requires an argument\n");
}
}
},
helpInfo: " -" + name + " <opts>" + " Additonal options for " + appName + " startup\n".substr(name.length)
};
if (XPCOMUtils.generateNSGetFactory)

View File

@@ -111,23 +111,21 @@ const Bookmarks = Module("bookmarks", {
},
// returns number of deleted bookmarks
remove: function remove(url) {
remove: function remove(ids) {
try {
if (isArray(url))
var bmarks = url;
else {
if (!isArray(ids)) {
let uri = util.newURI(url);
var bmarks = services.get("bookmarks")
idw = services.get("bookmarks")
.getBookmarkIdsForURI(uri, {})
.filter(bookmarkcache.closure.isRegularBookmark);
}
bmarks.forEach(function (id) {
ids.forEach(function (id) {
let bmark = bookmarkcache.bookmarks[id];
if (bmark)
PlacesUtils.tagging.untagURI(util.newURI(bmark.url), null);
services.get("bookmarks").removeItem(id);
});
return bmarks.length;
return ids.length;
}
catch (e) {
dactyl.reportError(e, true);