parameters: ()
return_statement: return parser
docstring: Create and return a argparse.ArgumentParser modified for script.
docstring_summary: Create and return a argparse.ArgumentParser modified for script.
docstring_tokens: Create and return a argparse . ArgumentParser modified for script .
function: def create_arg_parser():
      """ Create and return a argparse.ArgumentParser modified for script. """
      parser = argparse.ArgumentParser()
      parser.add_argument("-d", "--directory", help="Specify a directory to scan",
                          dest="dir", type=str)
      parser.add_argument("-o", "--output", help="Writes to a file instead of\
                                                  stdout", dest="output", type=str)
      parser.add_argument("-r", "--recursive", help="Recursive search for .yaml files",
                          dest="recursive", type=bool, nargs='?', const=True, default=False)
  
      exclusive_parser = parser.add_mutually_exclusive_group()
      exclusive_parser.add_argument("-l", "--log", help="Modifies report format: "
                                    "Combines the log '.yaml' files into one file.",
                                    action='store_true', dest='log')
      return parser
function_tokens: def create_arg_parser ( ) : parser = argparse . ArgumentParser ( ) parser . add_argument ( "-d" , "--directory" , help = "Specify a directory to scan" , dest = "dir" , type = str ) parser . add_argument ( "-o" , "--output" , help = "Writes to a file instead of\
                                                  stdout" , dest = "output" , type = str ) parser . add_argument ( "-r" , "--recursive" , help = "Recursive search for .yaml files" , dest = "recursive" , type = bool , nargs = '?' , const = True , default = False ) exclusive_parser = parser . add_mutually_exclusive_group ( ) exclusive_parser . add_argument ( "-l" , "--log" , help = "Modifies report format: " "Combines the log '.yaml' files into one file." , action = 'store_true' , dest = 'log' ) return parser