Check if called from command line.