Scripts: add error option for CLI