remove the non-functional -p/--pname argument, replace it with -f/--fname add -a (use abbreviations) and -L (use logical offsets) to getopt parse list thanks to wiz for noticing inconsistencies
http://cantaforda.com/cfcl/eryk/linux/pdisk/index.html this is the utility provided by mklinux and osX to manipulate the Apple Partition map.