fixes a bug where options were being treated as operands, that is filenames