From 5e4778821885b0a3605b3a973831ef48e1736074 Mon Sep 17 00:00:00 2001 From: DuarteSAssuncao Date: Wed, 1 Nov 2023 15:14:24 +0000 Subject: [PATCH] Help modified. --- src/Runtime.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Runtime.cpp b/src/Runtime.cpp index 8ca4784..8410bb2 100644 --- a/src/Runtime.cpp +++ b/src/Runtime.cpp @@ -181,13 +181,19 @@ void Runtime::process_args(std::vector args) { } if (args[0] == "help") { - std::cout << "The available commands are:\n" << + std::cout << "The available commands are:\n\n" << " print: takes 1 argument: print \n" << + " Prints the student name, the student code and the student schedule.\n\n" << " add: takes 3 arguments: add \n" << + " Adds a student to a class if possible.\n\n" << " remove: takes 2 arguments: remove \n" << + " Removes a student from a class if possible.\n\n" << " switch: takes 3 arguments: switch \n" << - " quit: quit the program.\n" << - " help: prints this help.\n" << + " Switches the class of two students.\n\n" << + " quit: takes 0 arguments: quit\n" << + " Quits the program.\n\n" << + " help: takes 0 arguments: help\n" << + " Prints this help." << std::endl; return; }