Devtools gcli commands - fix the help.

This commit is contained in:
wolfbeast 2017-06-28 10:10:53 +02:00 committed by Roy Tam
commit 46f09ffa53
2 changed files with 4 additions and 4 deletions

View file

@ -335,10 +335,10 @@ Parameter.prototype.toJson = function() {
};
// 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
// default value is, just that it exists
// side (which doesn't do any executing) we only care whether default value is
// undefined, null, or something else.
if (this.paramSpec.defaultValue !== undefined) {
json.defaultValue = {};
json.defaultValue = (this.paramSpec.defaultValue === null) ? null : {};
}
if (this.paramSpec.description != null) {
json.description = this.paramSpec.description;

View file

@ -69,7 +69,7 @@ function getHelpManData(commandData, context) {
}
else {
// 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);
input = Promise.resolve(val).then(function(defaultValue) {