parameters: ()
return_statement: return args.file
docstring: Set up and parse command-line arguments
    Returns:
      file_path: Path to Checkers.td
docstring_summary: Set up and parse command-line arguments
    Returns:
      file_path: Path to Checkers.td
docstring_tokens: Set up and parse command - line arguments Returns : file_path : Path to Checkers . td
function: def parse_arguments():
    """Set up and parse command-line arguments
    Returns:
      file_path: Path to Checkers.td"""
    usage = """Parse Checkers.td to generate documentation for static analyzer checks"""
    parse = argparse.ArgumentParser(description=usage)
  
    file_path_help = ("""Path to Checkers directory
                      defaults to ../../../../clang/include/clang/StaticAnalyzer/Checkers/ if it exists
                      then to ../../../../../include/clang/StaticAnalyzer/Checkers/""")
  
    default_path=None
    if(os.path.exists(default_path_monorepo)):
      default_path = default_path_monorepo
    elif(os.path.exists(default_path_in_tree)):
      default_path = default_path_in_tree
  
    parse.add_argument("file", type=str, help=file_path_help, nargs='?', default=default_path)
    args = parse.parse_args()
  
    if(args.file is None):
      print("Could not find Checkers directory. Please see -h")
      exit(1)
  
    return args.file
function_tokens: def parse_arguments ( ) : usage = """Parse Checkers.td to generate documentation for static analyzer checks""" parse = argparse . ArgumentParser ( description = usage ) file_path_help = ( """Path to Checkers directory
                      defaults to ../../../../clang/include/clang/StaticAnalyzer/Checkers/ if it exists
                      then to ../../../../../include/clang/StaticAnalyzer/Checkers/""" ) default_path = None if ( os . path . exists ( default_path_monorepo ) ) : default_path = default_path_monorepo elif ( os . path . exists ( default_path_in_tree ) ) : default_path = default_path_in_tree parse . add_argument ( "file" , type = str , help = file_path_help , nargs = '?' , default = default_path ) args = parse . parse_args ( ) if ( args . file is None ) : print ( "Could not find Checkers directory. Please see -h" ) exit ( 1 ) return args . file