Fix argument handling in cmd/mid.