def parse_command(line):
    """Parse a command from line."""
    args = []
    kwargs = {}
    command, *parts = line.split(' ')
    for part in parts:
        if '=' in part:
            k, v = part.split('=')
            kwargs[k] = v
        else:
            args.append(part)
    return command, args, kwargs
