We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 847efc9 + 7b83a0e commit 2738ffaCopy full SHA for 2738ffa
cli.js
@@ -27,6 +27,7 @@ program
27
.option('-f, --fix', 'Attempt to fix basic standard JS issues')
28
.option('-v, --verbose', 'Verbose mode')
29
.action(function (cwdValue, patternArgs) {
30
+ if (cwdValue == null) return
31
// If cwd is an actual path, set it to be the cwd
32
// Otherwise interpret it as a glob pattern
33
if (fs.existsSync(path.resolve(cwdValue)) && fs.lstatSync(path.resolve(cwdValue)).isDirectory()) {
0 commit comments