mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Devtools gcli commands - fix the help.
This commit is contained in:
parent
4f027a0024
commit
46f09ffa53
2 changed files with 4 additions and 4 deletions
|
|
@ -335,10 +335,10 @@ Parameter.prototype.toJson = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Values do not need to be serializable, so we don't try. For the client
|
// Values do not need to be serializable, so we don't try. For the client
|
||||||
// side (which doesn't do any executing) we don't actually care what the
|
// side (which doesn't do any executing) we only care whether default value is
|
||||||
// default value is, just that it exists
|
// undefined, null, or something else.
|
||||||
if (this.paramSpec.defaultValue !== undefined) {
|
if (this.paramSpec.defaultValue !== undefined) {
|
||||||
json.defaultValue = {};
|
json.defaultValue = (this.paramSpec.defaultValue === null) ? null : {};
|
||||||
}
|
}
|
||||||
if (this.paramSpec.description != null) {
|
if (this.paramSpec.description != null) {
|
||||||
json.description = this.paramSpec.description;
|
json.description = this.paramSpec.description;
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ function getHelpManData(commandData, context) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// We need defaultText to work the text version of defaultValue
|
// We need defaultText to work the text version of defaultValue
|
||||||
input = l10n.lookupFormat('helpManOptional');
|
input = l10n.lookup('helpManOptional');
|
||||||
/*
|
/*
|
||||||
var val = param.type.stringify(param.defaultValue);
|
var val = param.type.stringify(param.defaultValue);
|
||||||
input = Promise.resolve(val).then(function(defaultValue) {
|
input = Promise.resolve(val).then(function(defaultValue) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue