Commit c97bb40b authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

Tee.cc: added check for argument

parent bfe03869
......@@ -36,6 +36,10 @@ Tee(void *process)
int taxisID1 = vlistInqTaxis(vlistID1);
int streamID2 = cdoStreamOpenWrite(cdoStreamName(1));
if (1 != operatorArgc())
{
cdoAbort("Operator tee requires exactly 1 argument.");
}
int streamID3 = streamOpenWrite(operatorArgv()[0],cdoFiletype());
int vlistID2 = vlistDuplicate(vlistID1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment