From fd04b3070fd88679778a806764baf0989d95f161 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 26 Jun 2014 11:58:38 +0200 Subject: Add error message when no users specified to files:scan command --- apps/files/command/scan.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/files/command') diff --git a/apps/files/command/scan.php b/apps/files/command/scan.php index 25ab70af362..1e7b54bb01e 100644 --- a/apps/files/command/scan.php +++ b/apps/files/command/scan.php @@ -63,6 +63,11 @@ class Scan extends Command { $users = $input->getArgument('user_id'); } + if (count($users) === 0) { + $output->writeln("Please specify the user id to scan or \"--all\" to scan for all users"); + return; + } + foreach ($users as $user) { if (is_object($user)) { $user = $user->getUID(); -- cgit v1.2.3