That’s a perfectly valid pattern and one that pipelines in nf-core definitely use (although not necessarily for minimap2).
It’s a pattern that makes more sense if there are quite different flows downstream or several config/channel options which would need to change.
You can alternatively set the arg dynamically with a closure if you have a value you can use to pick the right setting.
e.g.
withName: MINIMAP2_ALIGN {
ext.args = { meta.platform == 'ont' ? '-x ont ' : '-x pacbio'}
}