implement mergeArgs.