This is called via parted_options_array for print, mklabel and mkpart but I believe -a opt is only valid for mkpart.  I think the others will fail.  This should be only done for mkpart l believe.