You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reordering the parameters of addnote gives an error message.
Expected Behaviour
Reordering the parameters of addnote should not give an error message.
Steps to reproduce
Enter addnote n\text to add S1234567A
An error message appears IC number should start with one letter (S,T,F,G,M) followed by seven digits and one letter behind. It is case insensitive. An example is S1234567A.
Why this is an issue
According to the user guide:
Parameters can be in any order.
Words in UPPER_CASE are the parameters to be supplied by the user.
The format of add note is addnote IC_NUMBER n\NOTE [-replace]
Since IC_NUMBER is in upper case, it is a parameter by statement 2.
And parameters can be in any order, by statement 1.
So, by reordering the parameters, addnote n\NOTE IC_NUMBER should also be a valid format.
So the behaviour does not work as expected.
Suggested change
Update the user guide that the parameter IC_NUMBER without i\ must be in a specified order.
Current Behaviour
Reordering the parameters of
addnote
gives an error message.Expected Behaviour
Reordering the parameters of
addnote
should not give an error message.Steps to reproduce
addnote n\text to add S1234567A
IC number should start with one letter (S,T,F,G,M) followed by seven digits and one letter behind. It is case insensitive. An example is S1234567A.
Why this is an issue
According to the user guide:
UPPER_CASE
are the parameters to be supplied by the user.addnote IC_NUMBER n\NOTE [-replace]
Since
IC_NUMBER
is in upper case, it is a parameter by statement 2.And parameters can be in any order, by statement 1.
So, by reordering the parameters,
addnote n\NOTE IC_NUMBER
should also be a valid format.So the behaviour does not work as expected.
Suggested change
Update the user guide that the parameter
IC_NUMBER
withouti\
must be in a specified order.Labels:
severity.Medium
type.DocumentationBug
original: tituschewxj/ped#11
The text was updated successfully, but these errors were encountered: