Skip to content

Commit

Permalink
fix: no non-zero exit code on help output
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Dec 27, 2023
1 parent d839ef8 commit db60ecf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cli/lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ export default async function () {
console.error(`Try running 'npm install barnard59-${groups.command}'`)
}

process.exit(1)
if ('exitCode' in error) {
process.exit(error.exitCode)
} else {
process.exit(1)
}
}
},
}
Expand Down

0 comments on commit db60ecf

Please sign in to comment.