xscale: add support for length arg to wp command