Skip to content

Commit

Permalink
fix: tweak validation for required option
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Nov 26, 2018
1 parent af8ea3c commit dc3e2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default class Command {
)
for (const option of requiredOptions) {
const value = values[option.names[0]]
if (value === undefined || typeof value === 'boolean') {
if (typeof value === 'boolean') {
console.error(`error: option \`${option.rawName}\` argument is missing`)
process.exit(1)
}
Expand Down

0 comments on commit dc3e2da

Please sign in to comment.