headless/lib/browser/devtools_api/client_api_generator.py
def ParseArguments(args):
  """Parses command line arguments and returns a (json_api, output_dir) tuple.
  """
  cmdline_parser = argparse.ArgumentParser()
  cmdline_parser.add_argument('--protocol', required=True)
  cmdline_parser.add_argument('--output_dir', required=True)

  args = cmdline_parser.parse_args(args)
  with open(args.protocol, 'r') as f:
    return json.load(f), args.output_dir
Parses command line arguments and returns a (json_api, output_dir) tuple.
  
Parses command line arguments and returns a (json_api, output_dir) tuple.
Parses command line arguments and returns a ( json_api output_dir ) tuple .
def ParseArguments(args):
  cmdline_parser = argparse.ArgumentParser()
  cmdline_parser.add_argument('--protocol', required=True)
  cmdline_parser.add_argument('--output_dir', required=True)
  args = cmdline_parser.parse_args(args)
  with open(args.protocol, 'r') as f:
    return json.load(f), args.output_dir
def ParseArguments ( args ) : cmdline_parser = argparse . ArgumentParser ( ) cmdline_parser . add_argument ( '--protocol' , required = True ) cmdline_parser . add_argument ( '--output_dir' , required = True ) args = cmdline_parser . parse_args ( args ) with open ( args . protocol , 'r' ) as f : return json . load ( f ) , args . output_dir
Parses command line arguments and returns a (json_api, output_dir) tuple.
Parses command line arguments and returns a ( json_api output_dir ) tuple .
"""Parses command line arguments and returns a (json_api, output_dir) tuple.
  """
args