#!/usr/bin/env ruby argv = ARGV.dup argv.pop # remove --simple-prompt argv.push argv.shift # move the irt file to the end exec "irt_irb #{argv.join(' ')}"