lib/poolparty/helpers/optioner.rb in auser-poolparty-0.2.88 vs lib/poolparty/helpers/optioner.rb in auser-poolparty-0.2.89
- old
+ new
@@ -88,11 +88,11 @@
@opts.on('-t', '--test', 'Testing mode') { self.testing true }
blk.call(@opts, self) if blk
end
- @opts.on('-V', '--version', 'Display the version') { puts @version ; exit 0 }
+ @opts.on('-V', '--version', 'Display the version') { output_version ; exit 0 }
@opts.on_tail("-h", "--help", "Show this message") do
puts @opts
puts @extra_help
exit
end
@@ -125,10 +125,10 @@
end
def process_options
end
def output_version
- puts @version
+ puts ::PoolParty::Version
end
end
def extract_cloud_from_options(o)
\ No newline at end of file