parameters: (args)
return_statement: return parser.parse_args(args)
docstring: Parses command line options.
  
    Returns:
      An Namespace from argparse.parse_args()
docstring_summary: Parses command line options.
docstring_tokens: Parses command line options .
function: def ParseArgs(args):
    """Parses command line options.
  
    Returns:
      An Namespace from argparse.parse_args()
    """
    parser = argparse.ArgumentParser(prog='generate_resource_rewriter')
  
    parser.add_argument('--package-name',
                        required=True,
                        help='The package name of ResourceRewriter.')
    parser.add_argument('--dep-packages',
                        required=True,
                        help='A list of packages whose resource id will be'
                             'overwritten in ResourceRewriter.')
    parser.add_argument('--output-dir',
                        help='A output directory of generated'
                             ' ResourceRewriter.java')
    parser.add_argument('--srcjar',
                        help='The path of generated srcjar which has'
                             ' ResourceRewriter.java')
  
    return parser.parse_args(args)
function_tokens: def ParseArgs ( args ) : parser = argparse . ArgumentParser ( prog = 'generate_resource_rewriter' ) parser . add_argument ( '--package-name' , required = True , help = 'The package name of ResourceRewriter.' ) parser . add_argument ( '--dep-packages' , required = True , help = 'A list of packages whose resource id will be' 'overwritten in ResourceRewriter.' ) parser . add_argument ( '--output-dir' , help = 'A output directory of generated' ' ResourceRewriter.java' ) parser . add_argument ( '--srcjar' , help = 'The path of generated srcjar which has' ' ResourceRewriter.java' ) return parser . parse_args ( args )