def get_parser(self, prog_name): parser = SystemsFormatOne.get_parser(self, prog_name) parser = ServiceIdentifier.extend_parser(self, parser) parser.add_argument('username', metavar='<username>', type=str, help='Grantee username') parser.add_argument('role', type=str, metavar='<permission>', choices=SystemRole.NAMES, help='Role ({0})'.format('| '.join( SystemRole.NAMES))) return parser
def get_parser(self, prog_name): parser = super(SystemsFormatMany, self).get_parser(prog_name) parser = ServiceIdentifier.extend_parser(self, parser) return parser
def get_parser(self, prog_name): parser = AppsFormatMany.get_parser(self, prog_name) parser = ServiceIdentifier.extend_parser(self, parser) return parser
def get_parser(self, prog_name): parser = SystemsFormatOne.get_parser(self, prog_name) parser = ServiceIdentifier.extend_parser(self, parser) return parser
def get_parser(self, prog_name): parser = super(SystemsQueuesList, self).get_parser(prog_name) parser = ServiceIdentifier.extend_parser(self, parser) return parser
def get_parser(self, prog_name): parser = AppsFormatMany.get_parser(self, prog_name) parser = ServiceIdentifier.extend_parser(self, parser) parser.add_argument('username', type=str, help='target username') return parser
def get_parser(self, prog_name): parser = super(SystemsRolesShow, self).get_parser(prog_name) parser = ServiceIdentifier.extend_parser(self, parser) parser = Username.extend_parser(self, parser) return parser
def get_parser(self, prog_name): parser = AppsCreate.get_parser(self, prog_name) parser = ServiceIdentifier.extend_parser(self, parser) return parser