Skip to content

Commit

Permalink
change params
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Feb 5, 2024
1 parent b4475b7 commit f4274c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hash-gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const path = require('path')
async function run () {
let [rootPaths, writeLocation, includeDotFiles, ignorePatterns] = process.argv.slice(2)

if (!rootPaths) {
if (rootPaths === undefined || writeLocation === undefined) {
console.error('Usage: hash <root-path> <write-location> <include-dot-files> <ignore-patterns>')
process.exit(1)
}
Expand Down

0 comments on commit f4274c7

Please sign in to comment.