From 977e195bfec643161cbd0afc4da8fa019324eadb Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Mon, 7 Dec 2009 21:28:32 -0800 Subject: [PATCH] add `hub --version` --- bin/hub | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/hub b/bin/hub index 90924b9d..3ce724f4 100755 --- a/bin/hub +++ b/bin/hub @@ -8,6 +8,7 @@ class Hub PUBLIC = 'git://github.com/%s/%s.git' USER = `git config --global github.user`.chomp REPO = `basename $(pwd)`.chomp + VERSION = '0.1.0' attr_reader :args, :after def initialize(*args) @@ -42,6 +43,11 @@ class Hub end end + def version + puts "hub version %s" % VERSION + end + alias_method "--version", :version + def execute if @args.empty? @args[0] = 'help'