lib/keystorage/cli.rb in keystorage-0.3.0 vs lib/keystorage/cli.rb in keystorage-0.4.1
- old
+ new
@@ -1,12 +1,13 @@
require 'optparse'
+require 'keystorage'
require 'keystorage/commands'
module Keystorage
class CLI
def initialize(argv)
@options = Hash.new
- @options[:file] = ENV["HOME"]+"/.keystore"
+ @options[:file] = DEFAULT_FILE
@argv = argv.clone
@opt = OptionParser.new
@opt.banner="Usage: keystorage [options] command [command options] args..."
@opt.on('--help', 'show this message') { usage; exit }
@opt.on('-f FILE','--file=FILE', 'file to store password') { |v|