cli: Check that extra rules aren't passed to functions like 'optional'
cli: Check that extra rules aren't passed to functions like 'optional'

Fixes #247

tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter