Skip to content
Snippets Groups Projects
Commit fd04b307 authored by Vincent Petry's avatar Vincent Petry
Browse files

Add error message when no users specified to files:scan command

parent 1822bba5
Branches
No related tags found
No related merge requests found
......@@ -63,6 +63,11 @@ class Scan extends Command {
$users = $input->getArgument('user_id');
}
if (count($users) === 0) {
$output->writeln("<error>Please specify the user id to scan or \"--all\" to scan for all users</error>");
return;
}
foreach ($users as $user) {
if (is_object($user)) {
$user = $user->getUID();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment