#NEWLINE# def get_parser( self , prog_name ) : #NEWLINE# #INDENT# parser = super ( ListRoleAssignment , self ) . get_parser ( parser ) #NEWLINE# parser . add_argument ( '--effective' , action = 'store_true' , default = False , help = 'Returns only effective role assignments' ) #NEWLINE# parser . add_argument ( '--role' , metavar = '<role>' , help = 'Role to filter (name or ID)' ) #NEWLINE# parser . add_argument ( '--names' , action = 'store_true' , help = 'Display names instead of IDs' ) #NEWLINE# user_or_group = parser . add_mutually_exclusive_group ( ) #NEWLINE# user_or_group . add_argument ( '--user' , metavar = '<user>' , help = 'User to filter (name or ID)' ) #NEWLINE# common . add_user_domain_option_to_parser ( parser ) #NEWLINE# user_or_group . add_argument ( '--group' , metavar = '<group>' , help = 'Group to filter (name or ID)' ) #NEWLINE# common . add_group_domain_option_to_parser ( parser ) #NEWLINE# domain_or_project = parser . add_mutually_exclusive_group ( ) #NEWLINE# domain_or_project . add_argument ( '--domain' , metavar = '<domain>' , help = 'Domain to filter (name or ID)' ) #NEWLINE# domain_or_project . add_argument ( '--project' , metavar = '<project>' , help = 'Project to filter (name or ID)' ) #NEWLINE# common . add_project_domain_option_to_parser ( parser ) #NEWLINE# common . add_inherited_option_to_parser ( parser ) #NEWLINE# return parser