liftedinit / liftedinit/many-rs
Detect input duplicate in CLI and warn user
Open
Nobody has claimed this yet.
documentation
enhancement
good first issue
- Dominant language
- Rust
- Stars
- 6
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Running
```
$ ledger ... mint MFX '{"addr1": 10, "addr2": 10, "addr1": 10, ...}'
```
results in minting `10` for `"addr1"` and `10` for `"addr2"`. The duplicated key is ignored.
Detect and print a warning to the user if the input contains a duplicated key.
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
Start at the CLI path for the `ledger ... mint MFX` command and trace how its JSON input is parsed. Reproduce the example with the duplicated `addr1` key, then verify that completed handling warns the user when any input key appears more than once.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100