EDIT: Please, please, please read the two requirements listed at the bottom of this post before replying. People keep posting their new gems and li
You can try something like:
if( ARGV.include( '-f' ) ) file = ARGV[ARGV.indexof( '-f' ) + 1 )] ARGV.delete('-f') ARGV.delete(file) end