dthree / dthree/vorpal

Add .types() for command arguments

Open
#178 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

Command arguments are automatically assigned a type but there doesn't seem to be any support for explicit typing like with options. When entering in a phone number with special characters like so:

```
vorpal.command("send ")

app$ send +1212345678 "hello world"
```

the argument "number" is converted to a number, omitting the + symbol. Furthermore, I think the .types() function available for options should also support command arguments.

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.