lib/getch/options.rb in getch-0.3.4 vs lib/getch/options.rb in getch-0.3.5

- old
+ new

@@ -82,9 +82,14 @@ opts.on('--verbose', 'Write more messages to the standard output.') do OPTIONS[:verbose] = true end + opts.on('-v', '--version', 'Display the version.') do + puts "Getch v#{VERSION}" + exit + end + opts.on('-h', '--help', 'Display this') do puts opts exit end