Permalink
Browse files

add help note on aliases

  • Loading branch information...
1 parent 0e3f8ef commit 6c6c9a34c3f738de64def8441b8cd1c15ea279ca Charles Finkel committed Jan 29, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 bin/git-blame-game
View
@@ -2,6 +2,8 @@
$:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')
require 'git-blame-game'
+aliases = %w(blame praise annotate ann)
+
options = {}
OptionParser.new do |opts|
opts.banner = <<-END.gsub(/^[ \t]+/m, '')
@@ -17,6 +19,7 @@ OptionParser.new do |opts|
opts.on_tail("-h", "--help", "Show this message") do
puts opts
+ puts "\nAliases: " + aliases.map{|a| ["git-#{a}-game", "git #{a}-game"]}.flatten.join(", ")
exit
end

0 comments on commit 6c6c9a3

Please sign in to comment.