summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-08-20 17:01:37 +0200
committermh <mh@immerda.ch>2013-08-20 17:01:37 +0200
commit385a09124a419a9d139f57b92952331e7536bb08 (patch)
tree45db568c523e58b6ba2b1ac0c68dcd9ccbbd82fc
parent9fa30f2acb34e60a4e9c4a4931cbf055daf9b31f (diff)
parent5f73eecb05bbf5a73d62e918593a44bc0354ee86 (diff)
Merge remote-tracking branch 'github/master'
-rwxr-xr-xbin/trocla5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/trocla b/bin/trocla
index 39b9e76..a4f51cc 100755
--- a/bin/trocla
+++ b/bin/trocla
@@ -64,10 +64,11 @@ def set(options)
else
password = options.delete(:password) || STDIN.read.chomp
end
+ format = options.delete(:trocla_format)
Trocla.new(options.delete(:config_file)).set_password(
options.delete(:trocla_key),
- options.delete(:trocla_format),
- password
+ format,
+ Trocla::Formats[format].format(password, options.delete(:other_options).shift.to_s)
)
""
end