Replace filename argument with options argument