capture first command line argument in standalone applications