# File lib/Getopt/Declare.rb, line 1288
  def version(*t)
    prog = "#{$0}"
    filedate = File.stat( prog ).mtime.localtime()
    prog.sub!(%r#.*/#,'')
    r = ''
    if defined?($VERSION)
      r << "\n#{prog}: version #{$VERSION}  (#{filedate})\n\n"
    else
      r << "\n#{prog}: version dated #{filedate}\n\n"
    end

    if t.empty?
      return r
    else
      puts r
      exit t[0]
    end 
  end