Skip to content

Commit

Permalink
--version switch
Browse files Browse the repository at this point in the history
  • Loading branch information
aanand committed Jul 21, 2013
1 parent 7b8bcaf commit 3ad781b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/git-up.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require 'colored'
require 'grit'

require 'git-up/version'

class GitUp
def run(argv)
process_args(argv)
Expand Down Expand Up @@ -56,6 +58,9 @@ def process_args(argv)
case argv
when []
return
when ["-v"], ["--version"]
$stdout.puts "git-up #{GitUp::VERSION}"
exit
when ["man"]
system "man", man_path
exit
Expand Down

0 comments on commit 3ad781b

Please sign in to comment.