pingcap / pingcap/tiup

tiup playground,the parameter is incorrect, but the command did not report an error

Open
#1,475 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

component/tiup type/bug
Dominant language
Go
Stars
466
Forks
338
Avg merge
3d 7h
Merged PRs (30d)
8

Description

Feature Request

Is your feature request related to a problem? Please describe:

tiup --T tidb playground

In the command, the parameter of --T was wrong (it should be -T in fact), but the command did not report an error

tiup version:1.5.2 tiup
Describe the feature you'd like:

Why the featue is needed:

When you want to pass in wrong parameters, you will report an error. This problem is better positioned

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

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

Start by reproducing tiup --T tidb playground and compare it with the intended -T form, then trace the playground command's argument parsing. Done means the invalid --T parameter reports an error while the valid -T invocation continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
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.