parameters: (argv)
return_statement: return ([], leftover)
docstring: Collect the -nvcc_options values from argv.
  
    Args:
      argv: A list of strings, possibly the argv passed to main().
  
    Returns:
      1. The string that can be passed directly to nvcc.
      2. The leftover options.
docstring_summary: Collect the -nvcc_options values from argv.
docstring_tokens: Collect the - nvcc_options values from argv .
function: def GetNvccOptions(argv):
    """Collect the -nvcc_options values from argv.
  
    Args:
      argv: A list of strings, possibly the argv passed to main().
  
    Returns:
      1. The string that can be passed directly to nvcc.
      2. The leftover options.
    """
  
    parser = ArgumentParser()
    parser.add_argument('-nvcc_options', nargs='*', action='append')
  
    args, leftover = parser.parse_known_args(argv)
  
    if args.nvcc_options:
      options = _update_options(sum(args.nvcc_options, []))
      return (['--' + a for a in options], leftover)
    return ([], leftover)
function_tokens: def GetNvccOptions ( argv ) : parser = ArgumentParser ( ) parser . add_argument ( '-nvcc_options' , nargs = '*' , action = 'append' ) args , leftover = parser . parse_known_args ( argv ) if args . nvcc_options : options = _update_options ( sum ( args . nvcc_options , [ ] ) ) return ( [ '--' + a for a in options ] , leftover ) return ( [ ] , leftover )