Skip to content

Commit

Permalink
Merge pull request #35 from leathersole/option-version
Browse files Browse the repository at this point in the history
added -v option
  • Loading branch information
mikz authored May 9, 2018
2 parents dbda42f + 193c0f1 commit a2f253d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/3scale_toolbox/cli.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'optparse'
require '3scale_toolbox/version'

module ThreeScaleToolbox
module CLI
Expand All @@ -16,6 +17,12 @@ def self.parse(options)
puts opts
exit
end

opts.on("-v", "--version", "Prints the version of this command") do
puts ThreeScaleToolbox::VERSION
exit
end

end

begin
Expand Down

0 comments on commit a2f253d

Please sign in to comment.