Add groupArgs function to group commands