When input is add, app throws an exception The add function accepts 6 parameters: {name} {cook time} {calories} {singular slash separated allergies} {meal category} {url}. However, in the UG under disclaimers, it says that "parameters inside [ ] are compulsory, while those inside { } are optional".
Although it was specified in the UG that the disclaimers are meant for the document, but seeing the content of the exception thrown to guide users on the formatting of the add command does make it a little confusing (the disclaimer on the use of commas is accurate though).
When input is
add
, app throws an exceptionThe add function accepts 6 parameters: {name} {cook time} {calories} {singular slash separated allergies} {meal category} {url}
. However, in the UG under disclaimers, it says that "parameters inside [ ] are compulsory, while those inside { } are optional".Although it was specified in the UG that the disclaimers are meant for the document, but seeing the content of the exception thrown to guide users on the formatting of the add command does make it a little confusing (the disclaimer on the use of commas is accurate though).