Shell doc: Add better syntax checks (throwing exceptions)