checked if launched from command line to not wait for any key