use app arg parsing macros (issue #5681)