use app arg parsing macros (issue #5690)