Getting if the sub-command is valid