Added --filename argument according to #9
Uses arg from --filename flag instead of actual filename in parseFilename, fixes #9