Skip to content

Commit

Permalink
rework cli --version flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuchard committed Aug 31, 2023
1 parent cd16b3b commit e1ff659
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puppet-check/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def self.parse(args)

# base options
opts.on('--version', 'Display the current version.') do
puts 'puppet-check 2.2.2'
require 'rubygems'

puts Gem::Specification.load("#{File.dirname(__FILE__)}/../../puppet-check.gemspec").version
exit 0
end

Expand Down

0 comments on commit e1ff659

Please sign in to comment.