Nexmo / nexmo-cli

Nexmo CLI (Command Line Interface)
https://nexmo.com
MIT License
78 stars 52 forks source link

Duplication between number:update and link:app #136

Closed tommorris closed 4 years ago

tommorris commented 7 years ago

There is duplication of functionality between two commands in nexmo-cli:

number:update|nu [options] <number>              Link a number to an application
link:app|la <number> <app_id>                    Link a number to an application

number:update allows you to link a number to an application but is less clear on how you do it compared to the link: methods.

The help page says number:update [options] <number> while our examples have it the other way around - number:update <number> [options].

There's a fair few -- arguments that aren't documented from the interactive help (nexmo -h), and in this case, there's repetition of functionality between the commands.

(Internal use only: Slack thread)

sammachin commented 7 years ago

The description for number update should be changed to Configure the handling of a number or something as that allows you to link to app, sms, vxml or tel

cbetta commented 7 years ago

So there's 2 things happening here:

  1. The description for number:update is wrong, as it can do more than that.
  2. link:* is mostly a convenience wrapper around number:update

The solution would be to fix the description for number:update

carolgilabert commented 5 years ago

Would the description suggested above be descriptive enough?

Configure the handling of a number

AlexLakatos commented 5 years ago

Yes, I think it would

tm9k1 commented 5 years ago

Please close this issue if not open anymore @AlexLakatos