System.device.getdevice request

I was looking at system.device.getdevice, and it would be really nice to have a similar command like system.device.getdevice, which could populate the fields needed to duplicate a device via script.
something like
'deviceProps[ “Hostname” ] = “” #new IP address system.device.addDevice(deviceName = “NewDeviceName” , deviceType = “LogixDriver” , deviceProps = deviceProps)`

Probably not a high priority request, but I find myself often needing to duplicate existing devices and there is no simple way to do it. A “Clone this device” on web interface would work too…

This is worth putting on the ideas site.