Add Reset_Demodata Cli function
[tine20] / tine20 / Setup / Server / Cli.php
index f293be3..2abf182 100644 (file)
@@ -50,7 +50,9 @@ class Setup_Server_Cli implements Tinebase_Server_Interface
                 'sync_passwords_from_ldap'  => 'Synchronize user passwords from ldap',
                 'egw14import'               => 'Import user and groups from egw14
                          Examples: 
-                          setup.php --egw14import /path/to/config.ini'
+                          setup.php --egw14import /path/to/config.ini',
+                'reset_demodata USERNAME'            => 'reinstall applications and install Demodata (Needs Admin user)'
+                    
             ));
             $opts->parse();
         } catch (Zend_Console_Getopt_Exception $e) {
@@ -68,6 +70,7 @@ class Setup_Server_Cli implements Tinebase_Server_Interface
             empty($opts->sync_passwords_from_ldap) && 
             empty($opts->egw14import) && 
             empty($opts->check_requirements) && 
+            empty($opts->reset_demodata) &&
             empty($opts->create_admin) && 
             empty($opts->setconfig) && 
             empty($opts->getconfig)))