Duckapple / Kat

Kattis shell for getting examples, testing and submitting.
19 stars 6 forks source link

Added help command and improved output if no command was given #2

Closed jlndk closed 4 years ago

jlndk commented 4 years ago

Currently the program crashes with a IndexError if no command argument is given. Futhermore there is no way the user can see which command are available to them, besides checking the README file.

This PR fixes both of these issues by introducing a help message that is shown when the given command is either invalid or not-existing. I also added the option to deliberately get this message, using the new "help" command.

In the future this help command could be auto-generated, but I just kept it simple for now