#NEWLINE# def _add_identity_and_resource_options_to_parser( parser ) : #NEWLINE# #INDENT# domain_or_project = parser . add_mutually_exclusive_group ( ) #NEWLINE# domain_or_project . add_argument ( '--domain' , metavar = '<domain>' , help = 'Include <domain> (name or ID)' ) #NEWLINE# domain_or_project . add_argument ( '--project' , metavar = '<project>' , help = 'Include <project> (name or ID)' ) #NEWLINE# user_or_group = parser . add_mutually_exclusive_group ( ) #NEWLINE# user_or_group . add_argument ( '--user' , metavar = '<user>' , help = 'Include <user> (name or ID)' ) #NEWLINE# user_or_group . add_argument ( '--group' , metavar = '<group>' , help = 'Include <group> (name or ID)' ) #NEWLINE# common . add_group_domain_option_to_parser ( parser ) #NEWLINE# common . add_project_domain_option_to_parser ( parser ) #NEWLINE# common . add_user_domain_option_to_parser ( parser ) #NEWLINE# common . add_inherited_option_to_parser ( parser )