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=system.device.getdevice(deviceName)
'deviceProps[ “Hostname” ] = “192.168.1.2” #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.