bin/2pass in 2pass-1.0.0 vs bin/2pass in 2pass-1.1.0

- old
+ new

@@ -18,13 +18,21 @@ opts.banner = "Usage: 2pass [options]" opts.on("-h", "--help", "Display this help message") do options[:help] = true end + opts.on("-v", "--version", "Display the version") do + options[:version] = true + end end.parse! if options[:help] help_message + exit +end + +if options[:version] + puts TwoPass::VERSION exit end if ARGV.length < 2 help_message