Skip to content

Get remaining arguments #802

Closed
Closed
@amaury1093

Description

@amaury1093
program
  .version(version)
  .allowUnknownOption()
  .option('-a --option-a', 'Option A')
  .parse(process.argv);

I call my program with ./my/program --option-a 123 --option-b --option-c 567. Is there a way to get the remaining options (b & c), either as an object or as an rawArgs array?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions