diff options
author | icewind1991 <robin@icewind.nl> | 2014-06-26 17:01:39 +0200 |
---|---|---|
committer | icewind1991 <robin@icewind.nl> | 2014-06-26 17:01:39 +0200 |
commit | 46adf8cb195e1d76f36ef6bd91c4361dcdb40f05 (patch) | |
tree | 34487b0f42cd1e897cf05efc036746397140b42c | |
parent | 1dc6e1767cd2522592603496104415d9fc41b4d7 (diff) | |
parent | fd04b3070fd88679778a806764baf0989d95f161 (diff) | |
download | nextcloud-server-46adf8cb195e1d76f36ef6bd91c4361dcdb40f05.tar.gz nextcloud-server-46adf8cb195e1d76f36ef6bd91c4361dcdb40f05.zip |
Merge pull request #9223 from owncloud/occ-scan-arguments
Add error message when no users specified to files:scan command
-rw-r--r-- | apps/files/command/scan.php | 5 |
1 files changed, 5 insertions, 0 deletions
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("<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(); |