added the --type parameter etc.

Signed-off-by: Chris Jones <chris@jonezy.org>