Add build tests for build command checks.

Former-commit-id: 3f43b83f07ded116e0ae667f9c809bd1b7b4f30a
This commit is contained in:
John-David Dalton
2013-07-02 23:39:51 -07:00
parent c43ff29f5d
commit 2d5f045c29
2 changed files with 50 additions and 7 deletions

View File

@@ -2498,7 +2498,7 @@
if (isTemplate) {
invalidArgs.push('template');
}
if (invalidArgs.length > 2) {
if (invalidArgs.length > 1) {
warnings.push('The `' + invalidArgs.slice(0, -1).join('`, `') + '`' + (invalidArgs.length > 2 ? ',' : '') + ' and `' + invalidArgs.slice(-1) + '` commands may not be combined.');
}
// report invalid command entries