fix failure to merge args for single text param
This commit is contained in:
parent
71e069dec1
commit
ad3d075bb9
1 changed files with 2 additions and 2 deletions
|
|
@ -373,7 +373,7 @@ Requisition.prototype = {
|
||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.assignmentCount = Object.keys(this._assignments);
|
this.assignmentCount = Object.keys(this._assignments).length;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -626,7 +626,7 @@ oop.inherits(CliRequisition, Requisition);
|
||||||
|
|
||||||
// Special case: if there is only 1 parameter, and that's of type
|
// Special case: if there is only 1 parameter, and that's of type
|
||||||
// text we put all the params into the first param
|
// text we put all the params into the first param
|
||||||
if (this.assignmentCount == 1) {
|
if (this.assignmentCount === 1) {
|
||||||
var assignment = this.getAssignment(0);
|
var assignment = this.getAssignment(0);
|
||||||
if (assignment.param.type.name === 'text') {
|
if (assignment.param.type.name === 'text') {
|
||||||
assignment.setArgument(Argument.merge(args));
|
assignment.setArgument(Argument.merge(args));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue