parameters: ()
return_statement: return args
docstring: Parse input arguments
docstring_summary: Parse input arguments
docstring_tokens: Parse input arguments
function: def parse_args():
      """
      Parse input arguments
      """
      global arguments
      parser = argparse.ArgumentParser(
          description='check api compatible across versions')
      parser.add_argument('--debug', dest='debug', action="store_true")
      parser.add_argument(
          'prev',
          type=argparse.FileType('r'),
          help='the previous version (the version from develop branch)')
      parser.add_argument(
          'post',
          type=argparse.FileType('r'),
          help='the post version (the version from PullRequest)')
      for item in arguments:
          parser.add_argument(
              item[0], dest=item[1], help=item[4], type=item[2], default=item[3])
  
      if len(sys.argv) < 2:
          parser.print_help()
          sys.exit(1)
  
      args = parser.parse_args()
      return args
function_tokens: def parse_args ( ) : global arguments parser = argparse . ArgumentParser ( description = 'check api compatible across versions' ) parser . add_argument ( '--debug' , dest = 'debug' , action = "store_true" ) parser . add_argument ( 'prev' , type = argparse . FileType ( 'r' ) , help = 'the previous version (the version from develop branch)' ) parser . add_argument ( 'post' , type = argparse . FileType ( 'r' ) , help = 'the post version (the version from PullRequest)' ) for item in arguments : parser . add_argument ( item [ 0 ] , dest = item [ 1 ] , help = item [ 4 ] , type = item [ 2 ] , default = item [ 3 ] ) if len ( sys . argv ) < 2 : parser . print_help ( ) sys . exit ( 1 ) args = parser . parse_args ( ) return args