Beispiel #1
0
 def get_parser(self, prog_name):
     parser = super(ActorsPemsGrant, self).get_parser(prog_name)
     parser = ActorIdentifier().extend_parser(parser)
     parser = Username().extend_parser(parser)
     parser.add_argument('permission',
                         metavar='PERMISSION',
                         choices=AbacoPermission.NAMES,
                         help='Permission name ({0})'.format('| '.join(
                             AbacoPermission.NAMES)))
     return parser
Beispiel #2
0
 def get_parser(self, prog_name):
     parser = super(ActorsPemsShow, self).get_parser(prog_name)
     parser = ActorIdentifier().extend_parser(parser)
     parser = Username().extend_parser(parser)
     return parser