I can easily tell though, that this function extracts output filename from command line!!