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

Partially auto-generate help index. Still needs tag linkification and mappings.

This commit is contained in:
Kris Maglione
2010-12-22 20:35:15 -05:00
parent 06936c88ea
commit c6462e49b3
4 changed files with 65 additions and 271 deletions

View File

@@ -77,6 +77,8 @@ const Option = Class("Option", {
this.globalValue = this.defaultValue;
},
get helpTag() "'" + this.name + "'",
initValue: function () {
dactyl.trapErrors(function () this.value = this.value, this);
},
@@ -842,6 +844,7 @@ const Options = Module("options", {
dactyl.addUsageCommand({
name: ["listo[ptions]", "lo"],
description: "List all options along with their short descriptions",
index: "option",
iterate: function (args) options,
format: {
description: function (opt) (XML.ignoreWhitespace = false, XML.prettyPrinting = false, <>