diff --git a/include/cli/modules/user.php b/include/cli/modules/user.php
index 1504aacd2fcfaba3b423f82147e4a505e3c699eb..00dd6af894463a53fe61e5567c5d84ae3f7c118d 100644
--- a/include/cli/modules/user.php
+++ b/include/cli/modules/user.php
@@ -56,9 +56,9 @@ class UserManager extends Module {
             // Properly detect Macintosh style line endings
             ini_set('auto_detect_line_endings', true);
 
-            if (!$options['file'])
-                $this->fail('CSV file to import users from is required!');
-            elseif (!($this->stream = fopen($options['file'], 'rb')))
+            if (!$options['file'] || $options['file'] == '-')
+                $options['file'] = 'php://stdin';
+            if (!($this->stream = fopen($options['file'], 'rb')))
                 $this->fail("Unable to open input file [{$options['file']}]");
 
             $extras = array();