def findCmdLineSwitch(argList, switch, ignoreCase=True):
    """
    Argument List에서 command switch를 찾는다.

    optViewFields = '/view_fields:'
    optDeletedRecords = '/deleted_records'
    argv = 'SQLiteParser.py external.db files /view_fields:_data,date_modified,date_added /deleted_records'.split()
    v1 = findCmdLineSwitch(argv, optViewFields)       # _data,date_modified,date_added
    v2 = findCmdLineSwitch(argv, optDeletedRecords)   # True
  """
    argc = len(argList)
    for i in range(1, argc):
        if type(argList[i]) is not str: continue
        if ignoreCase:
            argv = argList[i].lower()
            switch = switch.lower()
        else:
            argv = argList[i]
        if argv == switch:
            return True
        elif argv.startswith(switch):
            value = argv[len(switch):]
            if value == '':
                return True
            else:
                return value
        else:
            False