def parse_args(parser, provider_required_args, argv):
<EOL>epilog = '<STR_LIT>'<EOL>for provider in provider_required_args:<EOL><INDENT>epilog += '<STR_LIT>' % (provider, provider_required_args[provider])<EOL><DEDENT>parser.epilog = epilog<EOL>args = parser.parse_args(argv)<EOL>for arg in provider_required_args[args.provider]:<EOL><INDENT>if not args.__getattribute__(arg):<EOL><INDENT>parser.error('<STR_LIT>' % arg)<EOL><DEDENT><DEDENT>return args<EOL>
Add provider required arguments epilog message, parse, and validate.