Fixed a bug where the function wouldn't throw an error if the user only ...

Previously, not including a -f option before the first file would throw an error, but not including the -f option before the second file wouldn't cause it. Fixes bug