NativeScript / NativeScript/nativescript-cli

CLI help when the wrong command is used

Open
#4,611 0 comments 0 reactions 0 assignees View on GitHub

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:

image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.