<s> """<STR_LIT>""" <EOL> import sys <EOL> import setup_path <EOL> from admin_sdk_directory_api import users_api <EOL> from plus_domains_api import people_api <EOL> from utils import admin_api_tool_errors <EOL> from utils import auth_helper <EOL> from utils import common_flags <EOL> from utils import log_utils <EOL> from utils import validators <EOL> def AddFlags ( arg_parser ) : <EOL> """<STR_LIT>""" <EOL> common_flags . DefineAppsDomainFlagWithDefault ( arg_parser ) <EOL> common_flags . DefineVerboseFlagWithDefaultFalse ( arg_parser ) <EOL> arg_parser . add_argument ( <EOL> '<STR_LIT>' , '<STR_LIT>' , action = '<STR_LIT:store_true>' , default = False , <EOL> help = '<STR_LIT>' ) <EOL> arg_parser . add_argument ( <EOL> '<STR_LIT>' , '<STR_LIT>' , action = '<STR_LIT:store_true>' , default = False , <EOL> help = '<STR_LIT>' ) <EOL> arg_parser . add_argument ( <EOL> '<STR_LIT>' , '<STR_LIT>' , required = True , <EOL> help = '<STR_LIT>' , <EOL> type = validators . EmailValidatorType ( ) ) <EOL> def main ( argv ) : <EOL> """<STR_LIT>""" <EOL> flags = common_flags . ParseFlags ( argv , '<STR_LIT>' , <EOL> AddFlags ) <EOL> http = auth_helper . GetAuthorizedHttp ( flags ) <EOL> if flags . plus_domains : <EOL> user_api = people_api . PlusDomains ( http ) <EOL> else : <EOL> user_api = users_api . UsersApiWrapper ( http ) <EOL> try : <EOL> user_api . PrintDomainUser ( flags . user_email , flags . long_list ) <EOL> except admin_api_tool_errors . AdminAPIToolUserError as e : <EOL> log_utils . LogError ( '<STR_LIT>' % flags . user_email , e ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( sys . argv [ <NUM_LIT:1> : ] ) </s>
