Invalid-input hint omits the history and clear commands
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
Research direction
Open Program.cs and find the default case of the operator switch around line 243. Read the invalid input hint and the README command table, then include the history and clear commands in the hint. Done when a misspelled command produces a hint that lists both commands.
Written by the indexing model from the issue text.
Description
The "Invalid input" hint (Program.cs, default case of the operator switch, line 243) reads:
Invalid input. The possible inputs were: Add (+), Subtract (-), Multiply (*), Divide (/), Power (^), Modulo (%), or Exit (exit).
It lists every operator and the exit keyword, but not the history and clear command words added in #19 and #23. A user who mistypes a command (e.g. histroy) is shown a list of "possible inputs" in which the two commands they just used don't exist — the hint actively contradicts the README's command table.
Suggested fix: append the commands to the message, e.g. "... Modulo (%), History (history), Clear (clear), or Exit (exit)."
A smoke test could feed a deliberately misspelled command (e.g. histroy) and assert the printed hint mentions both history and clear.
- Dominant language
- C#
- Stars
- 0
- Forks
- 0
- Avg merge
- 1h 12m
- Merged PRs (30d)
- 4
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from billyx86/CSharp-SimpleCalculator
-
enhancement good first issue
Difficulty 3/5 1-2 days Newbie friendliness 65/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
All issues in billyx86/CSharp-SimpleCalculator
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
juandresrodca/AdminForge#54 ·
-
要トリアージ 辞書
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
yksr-melt/Meltype#1625 · 1 reaction ·
Maintainers usually reply within 1 day
-
Docs typoOpen
Difficulty 1/5 Under an hour Newbie friendliness 78/100
MonoGame/docs.monogame.github.io#328 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
space-wizards/RobustToolbox#7197 ·
Maintainers usually reply within 1 day
-
documentation high priority
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
lachydotmcg/capri-desktop#201 ·
Maintainers usually reply within 1 day