Fixed a bug where the function wouldn't throw an error if the user only used one -f option