def _parse_args(args):
    pabot_args = {'command':['pybot'],
                  'verbose':False,
                  'pabotlib':False,
                  'pabotlibhost':'127.0.0.1',
                  'pabotlibport':8270,
                  'processes':max(multiprocessing.cpu_count(), 2)}
    while args and args[0] in ['--'+param for param in ['command', 'processes', 'verbose', 'resourcefile',
                                                        'pabotlib', 'pabotlibhost', 'pabotlibport', 'suitesfrom']]:
        if args[0] == '--command':
            end_index = args.index('--end-command')
            pabot_args['command'] = args[1:end_index]
            args = args[end_index+1:]
        if args[0] == '--processes':
            pabot_args['processes'] = int(args[1])
            args = args[2:]
        if args[0] is '--verbose':
            pabot_args['verbose'] = True
            args = args[1:]
        if args[0] == '--resourcefile':
            pabot_args['resourcefile'] = args[1]
            args = args[2:]
        if args[0] == '--pabotlib':
            pabot_args['pabotlib'] = True
            args = args[1:]
        if args[0] == '--pabotlibhost':
            pabot_args['pabotlibhost'] = args[1]
            args = args[2:]
        if args[0] == '--pabotlibport':
            pabot_args['pabotlibport'] = int(args[1])
            args = args[2:]
        if args[0] == '--suitesfrom':
            pabot_args['suitesfrom'] = args[1]
            args = args[2:]
    options, datasources = ArgumentParser(USAGE, auto_pythonpath=False, auto_argumentfile=False).parse_args(args)
    keys = set()
    for k in options:
        if options[k] is None:
            keys.add(k)
    for k in keys:
        del options[k]
    return options, datasources, pabot_args
dataset/ETHPy150Open mkorpela/pabot/pabot/pabot.py/_parse_args/operator `==` -> `is`