bin/tap in tap-0.12.3 vs bin/tap in tap-0.12.4
- old
+ new
@@ -1,8 +1,10 @@
#!/usr/bin/env ruby
-# usage: tap <command> {options} [args]
+# usage: tap <command> {options} [args] [-d-]
#
+# Launches a tap command. To enable debugging, append the -d- superflag.
+#
# examples:
# tap generate root . # generates a root dir
# tap run taskname --option input # runs the 'taskname' task
#
# help:
@@ -12,14 +14,10 @@
require "#{File.dirname(__FILE__)}/../lib/tap.rb"
# setup the environment
begin
-
- # handle super options
- $DEBUG = true if ARGV.delete('-d-')
- env = Tap::Exe.instantiate
-
+ env = Tap::Exe.setup(ARGV)
rescue(Tap::Env::ConfigError)
# catch errors and exit gracefully
# (errors usu from gem loading errors)
puts $!.message
exit(1)
\ No newline at end of file