Open mitchmalvin1 opened 1 year ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
Certain words are ignored input
Input:
add [RANDOM WORDS] /q [QUESTION] /a [ANSWER]
add
can be replaced with clear, help, review, byeExpected:
The input is in an incorrect format. You can view our user guide or type help to see the correct formats for commands. ==========================================================
Actual:
You have added the following card: Q:[QUESTION] A:[ANSWER] ==========================================================
Proof:
Cases where extra words are not ignored:
list all [RANDOM WORDS]
Apologies if this is an intended behaviour.
[original: nus-cs2113-AY2223S2/pe-interim#2026] [original labels: severity.Low type.FeatureFlaw]
[This is the team's response to the above 'original' bug]
It is the intended behavior for the program to ignore the text not behind any option function (eg: /q). I believe that our user guide already indicates that when adding a question by
add /q QUESTION /a ANSWER
, onlyQUESTION
andANSWER
would be recorded into the system.The program tries its best to recover from user mistakes, by ignoring options that are not relevant to its operation, instead of throwing completely and forcing the user to retype. It doesn't allow typo so you can't get away with
reviuw
but it will ignore arguments it don't care if they exist, and that's entirely by design.Items for the Tester to Verify
:question: Issue duplicate status
Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)
Reason for disagreement: This is different from the duplicate, the focus here should be in the line 1 q /q test
. The other issue is on trailing arguments when running a command such as add
. This bug is on specifying an index after the update
command has been run.
They are two different bugs because the linked issue bug is regarding the parser library that fails to detect trailing arguments. But this bug has nothing to do with parser library, it only means that the user fails to manually check for trailing arguments that come after the index
when the user runs the
update
command and is now trying to specify the index and the new question or answer, the trailing argument is not caught. This is an unintended behaviour that the author has not anticipated for