Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ async function main () {
try {
await res.parse()
} catch (/** @type {any} */ err) {
if (res.parsed && res.parsed.argv.debug) {
if (res.parsed && (res.parsed.argv.debug || process.env.DEBUG != null)) {
console.error('\n', err)
} else {
console.error(err.message)
console.error(err)
}

process.exit(1)
Expand Down
Loading