bin/subtrigger in subtrigger-0.2.2 vs bin/subtrigger in subtrigger-0.2.3

- old
+ new

@@ -1,4 +1,9 @@ -#!/usr/local/bin/env ruby +#!/usr/local/bin/ruby $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) require 'subtrigger' -Subtrigger.run(*ARGV) + +if ARGV.size == 1 && ARGV.first =~ /-v|--version/ + puts Subtrigger.version +else + Subtrigger.run(*ARGV) +end \ No newline at end of file