parameters: (argv)
return_statement: return parser.parse_args(argv[1:])
docstring: Parses and checks the command-line options.
  
    Returns:
      A tuple containing the options structure and a list of categories to
      be traced.
docstring_summary: Parses and checks the command-line options.
docstring_tokens: Parses and checks the command - line options .
function: def parse_options(argv):
    """Parses and checks the command-line options.
  
    Returns:
      A tuple containing the options structure and a list of categories to
      be traced.
    """
    USAGE = '''./find_usb_devices [--help]
      This script shows the mapping between USB devices and port numbers.
      Clients are not intended to call this script from the command line.
      Clients are intended to call the functions in this script directly.
      For instance, GetAllPhysicalPortToSerialMaps(...)
      Running this script with --help will display this message.
      Running this script without --help will display information about
      devices attached, TTY mapping, and serial number mapping,
      for testing purposes. See design document for API documentation.
    '''
    parser = argparse.ArgumentParser(usage=USAGE)
    return parser.parse_args(argv[1:])
function_tokens: def parse_options ( argv ) : USAGE = '''./find_usb_devices [--help]
      This script shows the mapping between USB devices and port numbers.
      Clients are not intended to call this script from the command line.
      Clients are intended to call the functions in this script directly.
      For instance, GetAllPhysicalPortToSerialMaps(...)
      Running this script with --help will display this message.
      Running this script without --help will display information about
      devices attached, TTY mapping, and serial number mapping,
      for testing purposes. See design document for API documentation.
    ''' parser = argparse . ArgumentParser ( usage = USAGE ) return parser . parse_args ( argv [ 1 : ] )