dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.63k stars 278 forks source link

How to make sub commands without the multi-word command feature? #347

Open trusktr opened 4 years ago

trusktr commented 4 years ago

The docs aren't too clear. Maybe it doesn't exist.

I know about multi-word commands, https://github.com/dthree/vorpal/wiki/api-%7C-vorpal.command#multi-word-commands.

But what I'm wondering about is something more along the lines of describing commands with nested functions, or with file hierarchy.

This is the feature in Yargs:

Is multi-word the only way in Vorpal?