cgpt: allow repair command to accept a whole disk or partition

This will allow the invocation `cgpt /dev/sda4` to repair /dev/sda.