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:
parent
cefd66ec75
commit
71b362b346
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user