예제 #1
0
 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
예제 #2
0
 def get_parser(self, prog_name):
     parser = super(SystemsFormatMany, self).get_parser(prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     return parser
예제 #3
0
 def get_parser(self, prog_name):
     parser = AppsFormatMany.get_parser(self, prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     return parser
예제 #4
0
 def get_parser(self, prog_name):
     parser = SystemsFormatOne.get_parser(self, prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     return parser
예제 #5
0
 def get_parser(self, prog_name):
     parser = super(SystemsQueuesList, self).get_parser(prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     return parser
예제 #6
0
 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
예제 #7
0
 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
예제 #8
0
 def get_parser(self, prog_name):
     parser = AppsCreate.get_parser(self, prog_name)
     parser = ServiceIdentifier.extend_parser(self, parser)
     return parser