Skip to content

Commit

Permalink
fix: .argv and .parse() now invoke identical code path (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed May 10, 2018
1 parent 458e894 commit f13ebf4
Show file tree
Hide file tree
Showing 13 changed files with 1,355 additions and 1,357 deletions.
4 changes: 2 additions & 2 deletions lib/levenshtein.js
Expand Up @@ -37,8 +37,8 @@ module.exports = function levenshtein (a, b) {
matrix[i][j] = matrix[i - 1][j - 1]
} else {
matrix[i][j] = Math.min(matrix[i - 1][j - 1] + 1, // substitution
Math.min(matrix[i][j - 1] + 1, // insertion
matrix[i - 1][j] + 1)) // deletion
Math.min(matrix[i][j - 1] + 1, // insertion
matrix[i - 1][j] + 1)) // deletion
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/validation.js
Expand Up @@ -37,7 +37,7 @@ module.exports = function validation (yargs, usage, y18n) {
)
} else {
usage.fail(
__('Too many non-option arguments: got %s, maximum of %s', _s, demandedCommands._.max)
__('Too many non-option arguments: got %s, maximum of %s', _s, demandedCommands._.max)
)
}
}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -28,15 +28,15 @@
"devDependencies": {
"chai": "^4.1.2",
"chalk": "^1.1.3",
"coveralls": "^2.11.11",
"coveralls": "^3.0.1",
"cpr": "^2.0.0",
"cross-spawn": "^6.0.4",
"es6-promise": "^4.0.2",
"hashish": "0.0.4",
"mocha": "^3.0.1",
"nyc": "^11.2.1",
"mocha": "^5.1.1",
"nyc": "^11.7.3",
"rimraf": "^2.5.0",
"standard": "^8.6.0",
"standard": "^11.0.1",
"standard-version": "^4.2.0",
"which": "^1.2.9",
"yargs-test-extends": "^1.0.1"
Expand Down

0 comments on commit f13ebf4

Please sign in to comment.