parameters: ()
return_statement: return parser
docstring: Creates a parser for command-line arguments to 'intercept'.
docstring_summary: Creates a parser for command-line arguments to 'intercept'.
docstring_tokens: Creates a parser for command - line arguments to intercept .
function: def create_intercept_parser():
      """ Creates a parser for command-line arguments to 'intercept'. """
  
      parser = create_default_parser()
      parser_add_cdb(parser)
  
      parser_add_prefer_wrapper(parser)
      parser_add_compilers(parser)
  
      advanced = parser.add_argument_group('advanced options')
      group = advanced.add_mutually_exclusive_group()
      group.add_argument(
          '--append',
          action='store_true',
          help="""Extend existing compilation database with new entries.
          Duplicate entries are detected and not present in the final output.
          The output is not continuously updated, it's done when the build
          command finished. """)
  
      parser.add_argument(
          dest='build', nargs=argparse.REMAINDER, help="""Command to run.""")
      return parser
function_tokens: def create_intercept_parser ( ) : parser = create_default_parser ( ) parser_add_cdb ( parser ) parser_add_prefer_wrapper ( parser ) parser_add_compilers ( parser ) advanced = parser . add_argument_group ( 'advanced options' ) group = advanced . add_mutually_exclusive_group ( ) group . add_argument ( '--append' , action = 'store_true' , help = """Extend existing compilation database with new entries.
          Duplicate entries are detected and not present in the final output.
          The output is not continuously updated, it's done when the build
          command finished. """ ) parser . add_argument ( dest = 'build' , nargs = argparse . REMAINDER , help = """Command to run.""" ) return parser