mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Add error message when no users specified to files:scan command
This commit is contained in:
parent
1822bba5e9
commit
fd04b3070f
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue