NativeScript / NativeScript/nativescript-cli
CLI help when the wrong command is used
Open
Nobody has claimed this yet.
docs
severity: low
ux
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
Today when trying to remove a platform, I used: tns platform rm android. This is wrong, but look at the response:

First, it doesn't say my command is wrong, just that the command doesn't accept parameters. Secondly it shows platform list, but why not the rest of the subcommands?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce tns platform rm android and inspect the CLI handling for the platform command and its subcommands. The finished change should clearly report that the command is invalid and show the available platform subcommands rather than only the platform list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100