use app arg parsing macros (issue #5679)