dthree / dthree/vorpal

Rejected promises log `true`

Open
#133 6 comments 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.6k
Forks
278
PR merge metrics
No merged PRs in 30d

Description

```
vorpal
.command('fail me ')
.description('Must return an arg.')
.action(function (args) {
return new Promise(function (resolve, reject) {
if (args.arg === 'not') {
resolve('we are happy');
} else {
reject('we are not happy.');
}
});
});
```

```
$ fail me

Missing required argument. Showing Help:

Usage: fail me [options]

Must return an arg.

Options:

--help output usage information

$ fail me foo
true
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.