bin/reap-log-notes in reap-9.3.5 vs bin/reap-log-notes in reap-9.4.0
- old
+ new
@@ -1,8 +1,26 @@
#!/usr/bin/env ruby
require 'reap/application'
-app = Reap::Application.new
+HELP = <<-END
+Usage: #{File.basename($0)} [options]
-app.log_notes
+This command scans source code for developer notes and writes them
+to well organized files. This tool can lookup and list TODO, FIXME
+and other labeled comments from source code.
+
+ files Glob(s) of files to search.
+ labels Labels to search for. Defaults to [ 'TODO', 'FIXME' ].
+ output Output directory. Defaults to log/.
+
+This command is also executed when reap-log is executed.
+END
+
+if ARGV.include?('--help')
+ puts HELP
+else
+ app = Reap::Application.new
+ app.log_notes
+end
+