1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-17 04:40:08 -07:00

Add error message to load models command

This commit is contained in:
David Hübner 2017-04-24 11:39:02 +02:00
parent cefd66ec75
commit 71b362b346

View File

@ -43,6 +43,11 @@ class LoadModelsCommand extends ContainerAwareCommand
$ldraw = $input->getArgument('ldraw');
if(!$input->getOption('file') && !$input->getOption('all')){
$output->writeln('Either the --all or --file option is required');
return 1;
}
if ($ldrawPath = realpath($ldraw)) {
$modelLoader->setLDrawLibraryContext($ldrawPath);