fixed a minor bug with file input without repetitive switch

Signed-off-by: Stefan Venz <ikstream86@gmail.com>