bin/reap-check-syntax in reap-9.3.5 vs bin/reap-check-syntax in reap-9.4.0
- old
+ new
@@ -1,7 +1,25 @@
#!/usr/bin/env ruby
require 'reap/application'
-app = Reap::Application.new
+HELP = <<-END
+Usage: #{File.basename($0)} [options]
-app.check_syntax
+Verify syntax of ruby scripts.
+
+This takes one option:
+
+ scripts files is check
+
+The scripts option is a glob or list of globs of
+the scripts to check. By default this is all
+scripts in the libpath(s).
+END
+
+if ARGV.include?('--help')
+ puts HELP
+else
+ app = Reap::Application.new
+ app.check_syntax
+end
+