Skip to content

Nested commands? #226

@wayneashleyberry

Description

@wayneashleyberry

Would it be possible to, or is it currently possible, to have nested commands?

program
  .command('user')
    .command('add [name]')
      .description('Adds a new user')
      .action(function(name) {
        //
      });

The reason I'm asking is because it seems commands with spaces in them don't work :/

ie.

program.command('add user [name]');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions