bin/reap-announce in reap-9.3.5 vs bin/reap-announce in reap-9.4.0

- old
+ new

@@ -1,7 +1,45 @@ #!/usr/bin/env ruby require 'reap/application' -app = Reap::Application.new +HELP = <<-END +Usage: #{File.basename($0)} [options] -app.announce +Generate and email a release announcement. The announcement +text is read from ANNOUNCE{.txt} or another template file +is specified, or if no template is given, the announcemnet +is automatically built from project metadata, ant the +CHANGES and NOTES files. + +Templates support metadata substitutions using $name$ syntax. +Also, it will subsititue the first line matching /please see notes/i +for the notelog. And /please see change/i for the changelog. + +The following settings apply: + + template Announcement template file (ANNOUNCE.txt). + cutoff Max number of lines of changelog to show. + mailto Email address(es) to send announcemnt. + +If <em>mailto</em> is set then these also apply: + + from Message FROM address [email]. + subject Subject of email message ([ANN] title verison). + server Email server to route message. + port Email server's port. + domain Email server's domain name. + account Email account name [email]. + login Login type: plain, cram_md5 or login. + secure Uses TLS security, true or false? + +The announcement will be printed to standard out before sending +so it can be verified. +END + +if ARGV.include?('--help') + puts HELP +else + app = Reap::Application.new + app.announce +end +