Reflect the app_options extraction at app.c

Also handle the 'h' option and make the app_options a constant.