Rather than just printing "Invalid command", it might be better to also list all the commands or highlight where the error is. In this case, "addmaintrips" was written instead of "addmaintrip", it is not a very prominent mistake and could take awhile to find, yet the exception thrown is not very helpful with identifying a small mistake like this.
Rather than just printing "Invalid command", it might be better to also list all the commands or highlight where the error is. In this case, "addmaintrips" was written instead of "addmaintrip", it is not a very prominent mistake and could take awhile to find, yet the exception thrown is not very helpful with identifying a small mistake like this.