Validate input for /pex help

Fixes #955
Fixes #874