Skip to content

Commit

Permalink
fix path check
Browse files Browse the repository at this point in the history
  • Loading branch information
rrd108 committed Oct 12, 2024
1 parent c7a2bee commit 67902e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const showHelpAndExit = (yargsInstance: any) => {

let pathArg = './src'
const analyzeIndex = process.argv.indexOf('analyze')
if (analyzeIndex !== -1 && !process.argv[analyzeIndex + 1].startsWith('--')) {
if (analyzeIndex !== -1 && process.argv[analyzeIndex + 1] && !process.argv[analyzeIndex + 1].startsWith('-')) {
pathArg = process.argv[analyzeIndex + 1]
}

Expand Down

0 comments on commit 67902e4

Please sign in to comment.