Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide access to the allowUnknownOption complaints #903

Closed
JoshuaKGoldberg opened this issue Jan 5, 2019 · 1 comment
Closed

Provide access to the allowUnknownOption complaints #903

JoshuaKGoldberg opened this issue Jan 5, 2019 · 1 comment

Comments

@JoshuaKGoldberg
Copy link

JoshuaKGoldberg commented Jan 5, 2019

There's no way I can find to find which args are unsupported. In this

program..allowUnknownOption();

// error on unknown commands
program.on('command:*', function () {
  console.error('Invalid command: %s\nSee --help for a list of available commands.', program.args.join(' '));
  process.exit(1);
});

The function receives no arguments and command.args is empty in my usage. Can there be a command.unknownOptions added to store the ones added?

@shadowspawn
Copy link
Collaborator

Closing in favour of #802

Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants