Convert partition_main to use TCLAP.