Permalink
Browse files

showing version when no task is choosed

  • Loading branch information...
1 parent 02450cf commit cf2bbe125ec57ec5dd6b52a897a5f98fd59c0b13 @guedes guedes committed Jul 16, 2011
Showing with 2 additions and 0 deletions.
  1. +1 −0 bin/pgxn_utils
  2. +1 −0 lib/pgxn_utils.rb
View
1 bin/pgxn_utils
@@ -6,4 +6,5 @@ require 'pgxn_utils'
task = __FILE__.split('-')[1] if File.basename(__FILE__) != 'pgxn_utils'
command_args = [ task ] + ARGV if task
+puts "PGXN Utils version: #{PgxnUtils::VERSION}" if ARGV.empty?
PgxnUtils::CLI.start( command_args || ARGV )
View
1 lib/pgxn_utils.rb
@@ -8,5 +8,6 @@
module PgxnUtils
autoload :CLI, 'pgxn_utils/cli'
+ autoload :VERSION, 'pgxn_utils/version'
autoload :Constants, 'pgxn_utils/constants'
end

0 comments on commit cf2bbe1

Please sign in to comment.