lib/balboa/cli/options.rb in balboa-0.1.1 vs lib/balboa/cli/options.rb in balboa-0.1.2

- old
+ new

@@ -4,12 +4,12 @@ require 'yaml' module Balboa module CLI class Options - ERROR_EXIT_CODE = 1 - BALBOA_FILE = '.balboa'.freeze + ERROR_EXIT_CODE = 1 + BALBOA_FILE = '.balboa'.freeze MissingOptionError = Class.new(RuntimeError) def self.parse(shifted_argv=[]) new(shifted_argv).parse @@ -48,11 +48,11 @@ @config.merge!(YAML.load_file(file)) if File.exists?(file) end end def load_params - @parser.on('-d', '--data PARAMS') do |data| - @config.merge!(data) + @parser.on('-p', '--password PASSWORD') do |password| + @config.merge!('password' => password) end end end end end