Skip to content

Commit

Permalink
Merge pull request #43 from ianks/clean-gemspec
Browse files Browse the repository at this point in the history
Add --version option to bin script
  • Loading branch information
ianks committed Jan 22, 2015
2 parents 0627a8f + 2767d9e commit efbf311
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/octodown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ options = {}
OptionParser.new do |opts|
opts.banner = 'Usage: octodown [options]'

opts.on_tail('--version', 'Show version') do
puts "octodown v#{Octodown::VERSION}"
exit
end

opts.on(
'-s', '--style [STYLE]', [:github, :atom], 'Choose style (atom, github)'
) do |s|
Expand Down

0 comments on commit efbf311

Please sign in to comment.