diff options
author | Dickson S. Guedes | 2011-07-16 19:58:14 +0000 |
---|---|---|
committer | Dickson S. Guedes | 2011-07-16 19:58:14 +0000 |
commit | cf2bbe125ec57ec5dd6b52a897a5f98fd59c0b13 (patch) | |
tree | 6245a6d538eed0e0e77a559026b9475a0e11544c | |
parent | 02450cfc00e94c554b8f74cad6dbe109e56c0f2c (diff) |
showing version when no task is choosed
-rwxr-xr-x | bin/pgxn_utils | 1 | ||||
-rw-r--r-- | lib/pgxn_utils.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/bin/pgxn_utils b/bin/pgxn_utils index 758a5ad..bbeca56 100755 --- a/bin/pgxn_utils +++ b/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 ) diff --git a/lib/pgxn_utils.rb b/lib/pgxn_utils.rb index 7e92f06..44bc8b6 100644 --- a/lib/pgxn_utils.rb +++ b/lib/pgxn_utils.rb @@ -8,5 +8,6 @@ require 'highline/import' module PgxnUtils autoload :CLI, 'pgxn_utils/cli' + autoload :VERSION, 'pgxn_utils/version' autoload :Constants, 'pgxn_utils/constants' end |