Vonage / vonage-cli

Vonage CLI tool.
Apache License 2.0
17 stars 13 forks source link

Fix validation error #126

Closed manchuck closed 3 months ago

manchuck commented 4 months ago

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 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

Checklist