add new main options: immediatelyExit, duration, fileSizeLimit, dataFrames
don't use all flags if one argument is null