If I want to set the XMS the only way to do it is in the additional arguments but that causes me to have duplicate arguments. You could also just add a checkbox to whether or not you want to set a custom memory amount.
Making the whole arguments modpack specific / overridable by a modpack would be ideal though. I probably wont need 8 GB of ram allocated to vanilla Minecraft. In fact that makes startup slower.