Bug with flag changes
Good Afternoon,
I want to bring up to attention the error (shown in picture below) that is given when trying to change a mode of a flag, which is that it is stating a mode can not be found even if it is one of the valid ones given when doing the command.
I was able to fix the issue by doing the following:
I made a change in StuffieConsoleRunner.java, in which the path was wrong under the getValidMode() method when it checks if the input is a valid mode/class or not. That said, in the try box under the said method, under line 74, I change the code to
cls = (Class<Enum>) Class.forName("it.unibz.inf.stuffie.Mode$" + mode[0]);
which ended up working after saving and compiling again as seen in the picture below.