fixed error handling in Trainer::help

This PR fixes a case when an invalid argument is passed to `Trainer::help`.