why haven't I written a method for CommandParser that does this