Skip to content
Browse files

Print version of the gem with --version of option

  • Loading branch information...
1 parent 9212cfc commit 69864179543b3f392347e0990c8e783e7be49808 @wallyqs wallyqs committed Jul 8, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 bin/org-ruby
View
10 bin/org-ruby
@@ -21,10 +21,20 @@ options_parser = OptionParser.new do |opts|
"Translate the ORG file to the specified format.") do |v|
options[:format] = v
end
+
+ opts.on("-v", "--version", "Print version") do |v|
+ options[:version] = true
+ end
end
begin
options_parser.parse!
+
+ if options[:version]
+ puts OrgRuby::VERSION
+ exit
+ end
+
if (ARGV.length == 0) then
puts options_parser
else

0 comments on commit 6986417

Please sign in to comment.
Something went wrong with that request. Please try again.