bin/contexto in contexto-0.4.0 vs bin/contexto in contexto-0.4.1
- old
+ new
@@ -14,11 +14,15 @@
optparse = OptionParser.new do |opts|
opts.banner = 'Usage: contexto [options]'
opts.on('-c', '--cluster CLUSTER', 'Cluster') { |v| options[:cluster] = v }
opts.on('-s', '--service SERVICE', 'Service') { |v| options[:service] = v }
- opts.on_tail("-h", "--help", "Show this message") do
+ opts.on_tail('-h', '--help', 'Show this message') do
puts opts
+ exit
+ end
+ opts.on_tail('-v', '--version', 'Show version') do
+ puts Contexto::VERSION
exit
end
end
begin