dthree / dthree/vorpal

Need support for periods in an option string?

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

Description

let say I want options like `--vpn.user=bob`; `vpn.host=sub.domain.net`; ...
adding

```
vorpal
.command('...')
.option('--vpn.user', '...')
.option('--vpn.host', '...')
```

would throw an error as `options.vpn` is not set

so we need to do

```
vorpal
.command('...')
.option('--vpn')
.option('--vpn.user', '...')
.option('--vpn.host', '...')
```

even we don't have usage for vpn option.
this pollute the help generation, is prone to making errors and is kind of a boiler plate

maybe we could use something like https://www.npmjs.com/package/objectkit to auto create path ?

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.