This addresses an issue whereby parsing flags with options is too verbose. For example:
vonage numbers:search US --features=VOICE,SMS fails because it should be SMS,VOICE. The version of oclif will not catch the error in the args parser and will display the stack trace. Here, we are intercepting the parse error and are just reporting the message as expected.
Updating oclif is not ideal as it will cause double work compared with2.x work.
Motivation and Context
Testing Details
Example Output or Screenshots (if appropriate)
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
This addresses an issue whereby parsing flags with options is too verbose. For example:
vonage numbers:search US --features=VOICE,SMS
fails because it should beSMS,VOICE
. The version ofoclif
will not catch the error in the args parser and will display the stack trace. Here, we are intercepting the parse error and are just reporting the message as expected.Updating oclif is not ideal as it will cause double work compared with
2.x
work.Motivation and Context
Testing Details
Example Output or Screenshots (if appropriate)
Types of changes
Checklist