Sha256: 5c7158242a3df89558d50042209f4326752367f24c09539c6a291ba856fd393f
Contents?: true
Size: 910 Bytes
Versions: 2
Compression:
Stored size: 910 Bytes
Contents
#!/usr/bin/env ruby require 'last_kee_diff' options = {} opt_parser = OptionParser.new do |opts| opts.banner = 'Usage: last-kee-diff [options]' opts.separator '' opts.separator 'Required options:' opts.on('-l', '--last-pass [LAST_PASS_FILE]', 'The LastPass CSV file') do |last_pass_file| options[:last_pass_file] = last_pass_file end opts.on('-k', '--kee-pass [KEE_PASS_FILE]', 'The KeePass XML file') do |kee_pass_file| options[:kee_pass_file] = kee_pass_file end opts.separator '' opts.separator 'Extra options:' opts.on_tail('-h', '--help', 'Show this message') do puts opts exit end opts.on_tail('-v', '--version', 'Show version') do puts LastKeeDiff::VERSION exit end end opt_parser.parse! abort opt_parser.to_s if options[:last_pass_file].nil? || options[:kee_pass_file].nil? LastKeeDiff.diff options[:last_pass_file], options[:kee_pass_file]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
last_kee_diff-0.1.1 | exe/last-kee-diff |
last_kee_diff-0.1.0 | exe/last-kee-diff |