Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add a Module to Schedule for an existing person #4216

Open
nus-pe-bot opened this issue Nov 15, 2019 · 1 comment
Open

Unable to add a Module to Schedule for an existing person #4216

nus-pe-bot opened this issue Nov 15, 2019 · 1 comment

Comments

@nus-pe-bot
Copy link

ScreenShot:

image.png

Given the following explaination,

image.png

After registering a person named 'John', the execution of the following command should not throw an "invalid command format" error:

addmod n/John m/CS2103T cl/G01,T5


[original: nus-cs2103-AY1920S1/pe-interim#4238]
@marqueurs404
Copy link
Contributor

Team's Response

Hi, the command addmod n/John m/CS2103T cl/G01,T5 which you have entered is indeed an invalid command as you did not specify the class types along with the class numbers.

The correct command for your case should be addmod n/John m/CS2103T cl/LEC:G01 instead (note that there is no class with class number T5 according to the data we have acquired from NUSMods).

The reason why you are required to specify both the class type and the class number for the cl/ parameter is because the class number alone is not sufficient to uniquely identify a class - there are some modules which has the same class number, e.g. 01, for both a lecture and a tutorial, which means you'll have to use cl/LEC:01,TUT:01 to add those classes correctly.

Duplicate status (if any):

--

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants