bugfix: cmd line argument handline in non-run modes.