Better Error handling when you specify an incorrect -c param

Raising is the only way I could stop execution, possibly a custom exception would be better.