Minor fix of command line method

Missed a check for a file.