Parse the arguments, read the passwd file, execute the given command (get, add, ...).

keypr_main(raw_cmd_args = NULL, passphrase = NULL)

Arguments

raw_cmd_args

Command-line arguments as a string, as recognized by docopt. See -h usage screen.

passphrase

A passphrase to the encrypted passwd. Only for testing.

Value

An error code: 0 if no errors, > 0 otherwise.

Examples

if (FALSE) {
keypr_main(c('--password_length', '12', 'add', 'brin@gmail.com', 'google.com'))
}