# File lib/rcodetools/options.rb, line 60
  def handle_misc(options)
    separator ""
    separator "Misc options:"
    on("--cd DIR", "Change working directory to DIR.") do |dir|
      options[:wd] = dir
    end
    on("--debug", "Write transformed source code to xmp-tmp.PID.rb.") do
      options[:dump] = "xmp-tmp.#{Process.pid}.rb"
    end
    on("--tmpfile", "--tempfile", "Use tmpfile instead of open3. (non-windows)") do
      options[:execute_ruby_tmpfile] = true
    end
    on("-w N", "--width N", Integer, "Set width of multi-line annotation. (xmpfilter only)") do |width|
      options[:width] = width
    end
    separator ""
    on("-h", "--help", "Show this message") do
      puts self
      exit
    end
    on("-v", "--version", "Show version information") do
      puts "#{File.basename($0)} #{XMPFilter::VERSION}"
      exit
    end
  end