def getArgumentValue(args, key):
    """Returns the value for the argument 'key' in the list of Moses
    arguments 'args'.
    
    """
    split = args.split()
    for i in range(0, len(split)):
        if i > 0 and key == split[i-1].strip():
            return split[i].strip()
    return None