ruby: fix '-r' option of 'edit' action to take 'N' argument