Skip to content

Instantly share code, notes, and snippets.

@pgampe
Created April 8, 2013 19:06
Show Gist options
  • Save pgampe/5339523 to your computer and use it in GitHub Desktop.
Save pgampe/5339523 to your computer and use it in GitHub Desktop.
protected function handleCliArguments($generator) {
foreach ($this->cli_args as $name => $value) {
switch ($name) {
case '--disableClassAliases':
$generator->setIncludeAliases(FALSE);
break;
case '--disableScanFiles':
$generator->setScanFiles(FALSE);
break;
case '--extensions':
$extensions = GeneralUtility::trimExplode($value);
foreach ($extensions as $extensions) {
$generator->appendExtension($extension);
}
break;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment