Method: Keybox::Application::PasswordSafe#initialize

Defined in:
lib/keybox/application/password_safe.rb

#initialize(argv = []) ⇒ PasswordSafe

Returns a new instance of PasswordSafe.



26
27
28
29
30
31
32
33
34
35
36
# File 'lib/keybox/application/password_safe.rb', line 26

def initialize(argv = [])
    @actions = Array.new
    super(argv)
    
    # only one of the actions is allowed
    if actions.size > 1 then
        @error_message = [ "ERROR: Only one of #{ACTION_LIST.join(",")} is allowed at a time",
                            "Try `#{@parser.program_name} --help` for more information"].join("\n")
    end

end