dthree / vorpal

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

Help for sub-commands does not show options #66

Closed sanderhouttekier closed 8 years ago

sanderhouttekier commented 8 years ago

if I ask help for a subcommand:

My-cli$ help user add

  Commands:

    user add [options]   Create a new admin user

if I change the command so it is a root level command:

My-cli$ help add-user

  Usage: add-user [options]

  Create a new admin user

  Options:

    --help                                output usage information
    -u <username>, --username <username>  the username for this user
    -p <password>, --password <password>  the password for this user
sanderhouttekier commented 8 years ago

might be related to #63

dthree commented 8 years ago

Fixed - help command didn't accept multi-word arguments, so didn't properly catch the command.