Skip to content

Usage on incomplete call unclear #273

@nivex

Description

@nivex

First, I ask for help with an incomplete command:

kjotte@mystic:~$ linode-cli networking ip-update
usage: linode-cli [-h] [--rdns rdns] address
linode-cli: error: the following arguments are required: address

First, the example usage doesn't include all the arguments, eg: networking ip-update. Yes, I just provided that, but the readback should probably be consistent.

OK, I'll provide the only mandatory argument, since --rdns rdns is in brackets, indicating optional:

kjotte@mystic:~$ linode-cli networking ip-update 2600:3c03:e001:601::d01
Request failed: 400
┌errors─┬──────────────────┐
│ field │ reason           │
├───────┼──────────────────┤
│ rdns  │ rdns is required │
└───────┴──────────────────┘

Makes sense to me, a seasoned network person, that it's required, but this may not be obvious to a newer user. The [ ] should probably be removed from the usage hint, and --rdns dns be added to "the following arguments are required".

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions