vaultmanager/modules/VaultManagerLDAP.py
def initialize_subparser(self, subparsers):
        """
        Add the subparser of this specific module to the list of all subparsers

        :param subparsers: list of all subparsers
        :type subparsers: argparse.ArgumentParser.add_subparsers()
        :return:
        """
        self.logger.debug("Initializing subparser")
        self.module_name = \
            self.__class__.__name__.replace("VaultManager", "").lower()
        self.subparser = \
            subparsers.add_parser(self.module_name,
                                  help=self.module_name + ' management')
        self.subparser.add_argument(
            "--list-groups", action='store_true', help="List LDAP groups"
        )
        self.subparser.add_argument(
            "--create-policies", action='store_true',
            help="Create policies from LDAP groups and users"
        )
        self.subparser.add_argument(
            "--manage-ldap-groups", nargs='?', metavar="LDAP_mount_point",
            help="""Create LDAP groups in Vault with associated
            policies at specified mount point"""
        )
        self.subparser.add_argument(
            "--manage-ldap-users", nargs='?', metavar="LDAP_mount_point",
            help="""Create LDAP users in Vault with associated
             policies and groups at specified mount point"""
        )
        self.subparser.add_argument(
            "--create-groups-secrets", nargs='?',
            metavar="groups_secrets_folder",
            help="Create a folder for each group in <groups_secrets_folder>"
        )
        self.subparser.add_argument(
            "--create-users-secrets", nargs='?',
            metavar="users_secrets_folder",
            help="Create a folder for each user in <users_secrets_folder>"
        )
        self.subparser.set_defaults(module_name=self.module_name)

        Add the subparser of this specific module to the list of all subparsers

        :param subparsers: list of all subparsers
        :type subparsers: argparse.ArgumentParser.add_subparsers()
        :return:
        
Add the subparser of this specific module to the list of all subparsers
Add the subparser of this specific module to the list of all subparsers
def initialize_subparser(self, subparsers):
        self.logger.debug("Initializing subparser")
        self.module_name = \
            self.__class__.__name__.replace("VaultManager", "").lower()
        self.subparser = \
            subparsers.add_parser(self.module_name,
                                  help=self.module_name + ' management')
        self.subparser.add_argument(
            "--list-groups", action='store_true', help="List LDAP groups"
        )
        self.subparser.add_argument(
            "--create-policies", action='store_true',
            help="Create policies from LDAP groups and users"
        )
        self.subparser.add_argument(
            "--manage-ldap-groups", nargs='?', metavar="LDAP_mount_point",
            help="""Create LDAP groups in Vault with associated
            policies at specified mount point"""
        )
        self.subparser.add_argument(
            "--manage-ldap-users", nargs='?', metavar="LDAP_mount_point",
            help="""Create LDAP users in Vault with associated
             policies and groups at specified mount point"""
        )
        self.subparser.add_argument(
            "--create-groups-secrets", nargs='?',
            metavar="groups_secrets_folder",
            help="Create a folder for each group in <groups_secrets_folder>"
        )
        self.subparser.add_argument(
            "--create-users-secrets", nargs='?',
            metavar="users_secrets_folder",
            help="Create a folder for each user in <users_secrets_folder>"
        )
        self.subparser.set_defaults(module_name=self.module_name)
def initialize_subparser ( self , subparsers ) : self . logger . debug ( "Initializing subparser" ) self . module_name = self . __class__ . __name__ . replace ( "VaultManager" , "" ) . lower ( ) self . subparser = subparsers . add_parser ( self . module_name , help = self . module_name + ' management' ) self . subparser . add_argument ( "--list-groups" , action = 'store_true' , help = "List LDAP groups" ) self . subparser . add_argument ( "--create-policies" , action = 'store_true' , help = "Create policies from LDAP groups and users" ) self . subparser . add_argument ( "--manage-ldap-groups" , nargs = '?' , metavar = "LDAP_mount_point" , help = """Create LDAP groups in Vault with associated
            policies at specified mount point""" ) self . subparser . add_argument ( "--manage-ldap-users" , nargs = '?' , metavar = "LDAP_mount_point" , help = """Create LDAP users in Vault with associated
             policies and groups at specified mount point""" ) self . subparser . add_argument ( "--create-groups-secrets" , nargs = '?' , metavar = "groups_secrets_folder" , help = "Create a folder for each group in <groups_secrets_folder>" ) self . subparser . add_argument ( "--create-users-secrets" , nargs = '?' , metavar = "users_secrets_folder" , help = "Create a folder for each user in <users_secrets_folder>" ) self . subparser . set_defaults ( module_name = self . module_name )
Add the subparser of this specific module to the list of all subparsers
Add the subparser of this specific module to the list of all subparsers
"""
        Add the subparser of this specific module to the list of all subparsers

        :param subparsers: list of all subparsers
        :type subparsers: argparse.ArgumentParser.add_subparsers()
        :return:
        """
None
self
subparsers
list of all subparsers
list of all subparsers