lib/ectoken/cli.rb in verizon_token-0.2.1 vs lib/ectoken/cli.rb in verizon_token-0.2.2
- old
+ new
@@ -2,9 +2,14 @@
class CLI
def self.main
@options = {}
option_parser = OptionParser.new do |opts|
+ opts.on('-v', '--version', 'Show version') do |v|
+ puts EdgeCastToken::VERSION
+ exit
+ end
+
opts.on('-k', '--key=KEY', 'Key to encrypt or decrypt') do |v|
@options[:key] = v
end
opts.on('-t', '--token=TOKEN', 'Token to encrypt or decrypt') do |v|
\ No newline at end of file