CakeDC\Users\Shell\UsersShell::getOptionParser PHP Метод

getOptionParser() публичный Метод

public getOptionParser ( ) : OptionParser
Результат OptionParser
    public function getOptionParser()
    {
        $parser = parent::getOptionParser();
        $parser->description(__d('CakeDC/Users', 'Utilities for CakeDC Users Plugin'))->addSubcommand('activateUser')->description(__d('CakeDC/Users', 'Activate an specific user'))->addSubcommand('addSuperuser')->description(__d('CakeDC/Users', 'Add a new superadmin user for testing purposes'))->addSubcommand('addUser')->description(__d('CakeDC/Users', 'Add a new user'))->addSubcommand('changeRole')->description(__d('CakeDC/Users', 'Change the role for an specific user'))->addSubcommand('deactivateUser')->description(__d('CakeDC/Users', 'Deactivate an specific user'))->addSubcommand('deleteUser')->description(__d('CakeDC/Users', 'Delete an specific user'))->addSubcommand('passwordEmail')->description(__d('CakeDC/Users', 'Reset the password via email'))->addSubcommand('resetAllPasswords')->description(__d('CakeDC/Users', 'Reset the password for all users'))->addSubcommand('resetPassword')->description(__d('CakeDC/Users', 'Reset the password for an specific user'))->addOptions(['username' => ['short' => 'u', 'help' => 'The username for the new user'], 'password' => ['short' => 'p', 'help' => 'The password for the new user'], 'email' => ['short' => 'e', 'help' => 'The email for the new user']]);
        return $parser;
    }