replace this with:

```php
if (in_array($key, array('toc', 'cover')) {
    $command .= ' '.$key;
} else {
    $command .= ' --'.$key;
}
```